ytools 0.1.3 → 0.1.4

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.
data/Rakefile CHANGED
@@ -4,15 +4,14 @@ $LOAD_PATH.unshift File.expand_path("../spec", __FILE__)
4
4
  require 'fileutils'
5
5
  require 'rake'
6
6
  require 'rubygems'
7
- require 'spec/rake/spectask'
7
+ require 'rspec/core/rake_task'
8
8
  require 'ytools/version'
9
9
 
10
10
  task :default => :spec
11
11
 
12
12
  desc "Run the RSpec tests"
13
- Spec::Rake::SpecTask.new(:spec) do |t|
14
- t.spec_files = FileList['spec/**/*_spec.rb']
15
- t.spec_opts = ['-b', '-c', '-f', 'p']
13
+ RSpec::Core::RakeTask.new do |t|
14
+ t.rspec_opts = ['-b', '-c', '-f', 'p']
16
15
  t.fail_on_error = false
17
16
  end
18
17
 
@@ -29,7 +28,7 @@ begin
29
28
  gem.homepage = 'http://github.com/gabemc/ytools'
30
29
  gem.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
31
30
 
32
- gem.add_development_dependency 'rspec', '>=1.3.0'
31
+ gem.add_development_dependency 'rspec', '>=2.0.1'
33
32
  end
34
33
  rescue LoadError
35
34
  puts "Jeweler or dependencies are not available. Install it with: sudo gem install jeweler"
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -102,7 +102,7 @@ module YTools
102
102
  if obj.is_a?(Hash)
103
103
  obj = YamlObject.new(obj, yroot, hash_path)
104
104
  elsif obj.is_a?(Array)
105
- 0.upto(obj.length - 1).each do |i|
105
+ 0.upto(obj.length - 1) do |i|
106
106
  obj[i] = hashify(obj[i], "#{hash_path}[#{i}]")
107
107
  end
108
108
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ytools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gabe McArthur
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-19 00:00:00 -07:00
18
+ date: 2010-11-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 27
29
+ hash: 13
30
30
  segments:
31
- - 1
32
- - 3
31
+ - 2
33
32
  - 0
34
- version: 1.3.0
33
+ - 1
34
+ version: 2.0.1
35
35
  type: :development
36
36
  version_requirements: *id001
37
37
  description: Installs the ypath tool for reading YAML files using an XPath-like syntax. Installs the ytemplates tool for writing ERB templates using YAML files as the template binding object.