data_magic 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8d3f6a94411e15c7259ab68c9025824694a6ba2
4
- data.tar.gz: 43d27206b78632d49b42a96264eefccd31ddc6c2
3
+ metadata.gz: e67b1c5429e8be13be3e344f6ab716a89a26fef2
4
+ data.tar.gz: 31127c9fe43eb08a7c92abf59a11516d97fce262
5
5
  SHA512:
6
- metadata.gz: 4d1dcacb77607bf29d0e66d6a4ff95823e61995b610924a7e1e354fd597308a1252625817b00aa689a54a6f303245662d7bb9069e0a8c17671251a3f0467823e
7
- data.tar.gz: fbf215b0e7d60ee954939d51a6b467542eb60fa0292331eb6b51c8d84f68b0744d6694408760592b0dbac182622d07fb25ff0cbbd8af1f2223aeecc271b8728d
6
+ metadata.gz: 625b4ddb46b5f191f1e1dd6f8daa547368385596253bccf090ed704a9e1b79701bce94135dadbba670c805726e1285e7b79461492e5b8db628c58cf7866625e4
7
+ data.tar.gz: 18ccb17574943c342f5cbe5aad0fb66f364ef2b1a48dd7c94ef66dedec822a9c3de97f31e15b1a8fabed4d6de4135c387063859f0539a13e72cbd15a8c8ade4b
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
3
+ - 2.3
4
+ - 2.4
5
5
 
6
6
 
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == Version 1.1 / 2016-08-03
2
+ * Fixes
3
+ * Update so it works well on Ruby 2.4 (thanks Robert MacCracken)
4
+
1
5
  === Version 1.0 / 2016-11-23
2
6
  * Enhancements
3
7
  * Allow merged to be a Hash of Hashes and find key that matches (thanks Donavan Stanley)
data/README.md CHANGED
@@ -22,8 +22,9 @@ DataMagic.load 'filename.yml'
22
22
  ````
23
23
 
24
24
  Another way to specify the file to load is to use a _tag_ in a cucumber scenario. You tag should take the
25
- form of `@datamagic_FILENAME` where `FILENAME` is replaced with the file you wish to load. Then you can
26
- simply have the following code in a hook:
25
+ form of `@datamagic_FILENAME` where `FILENAME` is replaced with the file you wish to load. For example,
26
+ if you add the tag `@datamagic_foo` then the file `foo.yml` will be loaded. If you want
27
+ to use the tags you simply have to add the following code in a hook:
27
28
 
28
29
  ````ruby
29
30
  Before do |scenario|
@@ -1,5 +1,5 @@
1
1
  require 'data_magic/core_ext/string'
2
- require 'data_magic/core_ext/fixnum'
2
+ require 'data_magic/core_ext/integer'
3
3
  require "data_magic/version"
4
4
  require "data_magic/translation"
5
5
  require 'data_magic/date_translation'
@@ -85,12 +85,6 @@ module DataMagic
85
85
  base_hash.deep_merge new_hash
86
86
  end
87
87
 
88
- def self.fixture_tags_on(scenario)
89
- # tags for cuke 2, source_tags for cuke 1
90
- tags = scenario.send(scenario.respond_to?(:tags) ? :tags : :source_tags)
91
- tags.map(&:name).select { |t| t =~ /@datamagic_/ }
92
- end
93
-
94
88
  def self.fixture_files_on(scenario)
95
89
  # tags for cuke 2, source_tags for cuke 1
96
90
  tags = scenario.send(scenario.respond_to?(:tags) ? :tags : :source_tags)
@@ -1,4 +1,4 @@
1
- class Fixnum
1
+ class Integer
2
2
  def days_from_today(format = '%D')
3
3
  the_day = Date.today + self
4
4
  the_day.strftime(format)
@@ -1,3 +1,3 @@
1
1
  module DataMagic
2
- VERSION = "1.0"
2
+ VERSION = "1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_magic
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faker
@@ -95,7 +95,7 @@ files:
95
95
  - features/yaml/another.yml
96
96
  - features/yaml/example.yml
97
97
  - lib/data_magic.rb
98
- - lib/data_magic/core_ext/fixnum.rb
98
+ - lib/data_magic/core_ext/integer.rb
99
99
  - lib/data_magic/core_ext/string.rb
100
100
  - lib/data_magic/date_translation.rb
101
101
  - lib/data_magic/standard_translation.rb
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.5.1
127
+ rubygems_version: 2.5.2
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Provides datasets to application via YAML files