yaml2csv 0.0.2 → 0.0.3

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yaml2csv (0.0.2)
4
+ yaml2csv (0.0.3)
5
5
  ya2yaml (~> 0.30)
6
6
 
7
7
  GEM
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ Bundler::GemHelper.install_tasks
5
5
  require 'rake'
6
6
  require "rspec/core/rake_task"
7
7
 
8
- require File.expand_path("../lib/tasks/yaml2csv", __FILE__)
8
+ require File.expand_path("../lib/yaml2csv/tasks.rb", __FILE__)
9
9
 
10
10
  RSpec::Core::RakeTask.new(:spec)
11
11
 
@@ -4,6 +4,8 @@ require 'yaml'
4
4
  require 'csv'
5
5
  require 'ya2yaml'
6
6
 
7
+ require 'yaml2csv/railtie' if defined?(Rails)
8
+
7
9
  require 'yaml2csv/hash_extensions'
8
10
  Yaml2csv.extend_hash
9
11
 
@@ -0,0 +1,7 @@
1
+ module Yaml2csv
2
+ class Railtie < Rails::Railtie
3
+ rake_tasks do
4
+ load File.expand_path('../tasks.rb', __FILE__)
5
+ end
6
+ end
7
+ end
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.files = `git ls-files`.split("\n")
12
12
  s.test_files = `git ls-files -- spec/*`.split("\n")
13
13
 
14
- s.version = '0.0.2'
14
+ s.version = '0.0.3'
15
15
  s.platform = Gem::Platform::RUBY
16
16
  s.required_ruby_version = '>= 1.8.6'
17
17
  s.required_rubygems_version = '>= 1.3.5'
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency lib, version
24
24
  end
25
25
 
26
- s.add_dependency 'ya2yaml', '~> 0.30'
26
+ s.add_runtime_dependency 'ya2yaml', '~> 0.30'
27
27
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Hutton
@@ -77,9 +77,10 @@ files:
77
77
  - Rakefile
78
78
  - examples/example.csv
79
79
  - examples/example.yml
80
- - lib/tasks/yaml2csv.rb
81
80
  - lib/yaml2csv.rb
82
81
  - lib/yaml2csv/hash_extensions.rb
82
+ - lib/yaml2csv/railtie.rb
83
+ - lib/yaml2csv/tasks.rb
83
84
  - spec/hash_extensions_spec.rb
84
85
  - spec/spec_helper.rb
85
86
  - spec/yaml2csv_spec.rb