dgp-schedule_attributes 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/CODE_OF_CONDUCT.md +22 -0
- data/Gemfile.lock +31 -17
- data/gemfiles/rails_3.2.gemfile.lock +7 -0
- data/gemfiles/rails_4.0.gemfile.lock +7 -0
- data/gemfiles/rails_4.1.gemfile.lock +7 -0
- data/gemfiles/rails_4.2.gemfile.lock +7 -0
- data/gemfiles/rails_edge.gemfile.lock +7 -0
- data/lib/schedule_attributes/core.rb +18 -0
- data/lib/schedule_attributes/input.rb +7 -2
- data/lib/schedule_attributes/version.rb +1 -1
- data/schedule_attributes.gemspec +1 -0
- data/spec/active_record_integration_spec.rb +11 -10
- data/spec/schedule_attributes/configuration_spec.rb +4 -4
- data/spec/schedule_attributes/input_spec.rb +34 -34
- data/spec/schedule_attributes/rule_parser/day_spec.rb +21 -21
- data/spec/schedule_attributes/rule_parser/month_spec.rb +9 -9
- data/spec/schedule_attributes/rule_parser/week_spec.rb +6 -6
- data/spec/schedule_attributes/rule_parser/year_spec.rb +10 -10
- data/spec/schedule_attributes/rule_parser_spec.rb +1 -1
- data/spec/schedule_attributes/time_helpers_spec.rb +5 -5
- data/spec/schedule_attributes_spec.rb +63 -63
- data/spec/spec_helper.rb +6 -2
- data/spec/support/parser_macros.rb +0 -4
- metadata +17 -1
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
require 'active_support'
|
2
2
|
require 'ostruct'
|
3
|
-
require 'pry'
|
3
|
+
require 'pry-byebug'
|
4
4
|
require 'support/parser_macros'
|
5
5
|
|
6
|
-
$: << File.expand_path('../lib')
|
6
|
+
# $: << File.expand_path('../lib')
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
9
|
config.include SpecHelpers::ParserMacros
|
10
10
|
config.expect_with :rspec
|
11
|
+
|
12
|
+
config.before(:each) do
|
13
|
+
IceCube.compatibility = 12 if defined?(IceCube)
|
14
|
+
end
|
11
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dgp-schedule_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Gil
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry-byebug
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
139
153
|
description: Converts to/from date & time inputs for managing scheduled models.
|
140
154
|
email:
|
141
155
|
- dgilperez@gmail.com
|
@@ -147,6 +161,8 @@ files:
|
|
147
161
|
- ".rspec"
|
148
162
|
- ".travis.yml"
|
149
163
|
- Appraisals
|
164
|
+
- CHANGELOG.md
|
165
|
+
- CODE_OF_CONDUCT.md
|
150
166
|
- Gemfile
|
151
167
|
- Gemfile.lock
|
152
168
|
- README.markdown
|