Skip to content

Commit 0ba64f9

Browse files
author
Gena Maly
committed
Wrap into gem
1 parent 0164734 commit 0ba64f9

File tree

11 files changed

+242
-190
lines changed

11 files changed

+242
-190
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
# Specify your gem's dependencies in active_admin_date_range_preset.gemspec
4+
gemspec

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Igor Fedoronchuk
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "bundler/gem_tasks"
2+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'active_admin_date_range_preset/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = "active_admin_date_range_preset"
8+
spec.version = ActiveAdminDateRangePreset::VERSION
9+
spec.authors = ["Gena M."]
10+
spec.email = ["[email protected]"]
11+
12+
spec.summary = %q{date_range_preset extension for ActiveAdmin}
13+
spec.description = %q{Integrate useful fast links to set date ranges in to ActiveAdmin, for example today range, week range, month range}
14+
spec.homepage = "https://github.com/workgena/active_admin_date_range_preset"
15+
spec.license = "MIT"
16+
17+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18+
spec.bindir = "bin"
19+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20+
spec.require_paths = ["lib"]
21+
22+
spec.add_development_dependency "bundler", "~> 1.8"
23+
spec.add_development_dependency "rake", "~> 10.0"
24+
end

app/assets/javascripts/includes/date_range_ext_plugin.coffee

Lines changed: 0 additions & 172 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require "activeadmin"
2+
require "active_admin_datetimepicker/version"
3+
4+
module ActiveAdminDateRangePreset
5+
module Rails
6+
class Engine < ::Rails::Engine
7+
8+
end
9+
end
10+
11+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module ActiveAdminDateRangePreset
2+
VERSION = "0.1.0"
3+
end
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)