hash_rocket 0.3.4 → 0.3.5

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hash_rocket (0.3.2)
4
+ hash_rocket (0.3.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -8,7 +8,7 @@ by the other ruby symbolize keys convention ->
8
8
 
9
9
  symbolize_key: 'value'
10
10
 
11
- Supported formats: ( rb, erb, html, haml, spec ) + Gemfile
11
+ Supported formats: ( rb, erb, html, haml, spec, rake, yml ) + Gemfile
12
12
 
13
13
  ## Installation
14
14
 
@@ -32,11 +32,11 @@ Replace hash_rocket in every rails app files
32
32
 
33
33
  Specify directory:
34
34
 
35
- rake hash_rocket:convert FOLDER="/complete/path/to/directory"
35
+ rake hash_rocket:convert FOLDER="/!!COMPLETE!!/path/to/directory"
36
36
 
37
37
  Specify a single file path:
38
38
 
39
- rake hash_rocket:convert TARGET="/complete/path/to/file"
39
+ rake hash_rocket:convert TARGET="/!!COMPLETE!!/path/to/file"
40
40
 
41
41
  Specify verbose mode (print all the matching string):
42
42
 
@@ -1,3 +1,3 @@
1
1
  module HashRocket
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -0,0 +1,27 @@
1
+ :first_line => 'value'
2
+ class Example
3
+
4
+ def foo
5
+ :no_ident => 'value'
6
+ ::Class => 'value'
7
+ s::Class => 'value'
8
+ :normal => 'value'
9
+ :1digit => 'value'
10
+ :Capital => 'value'
11
+ :under_score => 'value'
12
+ :no_space=>'value'
13
+ :right_space=> 'value'
14
+ :left_space =>'value'
15
+ :left_double_space => 'value'
16
+ :right_double_space => 'value'
17
+ :_begin_with_under_score => 'value'
18
+ {:hash_start => 'value'
19
+ :hash_end => {'value'
20
+ ,:class => 'value'
21
+ (:cache => 'value'
22
+ paginate:page => 'value'
23
+ :multiple=>'value',:symbol=>'value'
24
+ :multiple => 2,:symbol=>'value'
25
+ end
26
+
27
+ end
@@ -40,6 +40,10 @@ describe HashRocket do
40
40
  @conversion.should eq File.read(folder + result)
41
41
  end
42
42
 
43
+ it ".rake", file_ext: "/file.rake" do
44
+ @conversion.should_not eq File.read(folder + result)
45
+ end
46
+
43
47
  it ".yml", file_ext: "/file.yml" do
44
48
  @conversion.should_not eq File.read(folder + result)
45
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_rocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70343949282080 !ruby/object:Gem::Requirement
16
+ requirement: &70145322405420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70343949282080
24
+ version_requirements: *70145322405420
25
25
  description: find and replace old hash rocket
26
26
  email:
27
27
  - mathieub@4nkh.com
@@ -74,6 +74,7 @@ files:
74
74
  - spec/data/file.erb
75
75
  - spec/data/file.haml
76
76
  - spec/data/file.html
77
+ - spec/data/file.rake
77
78
  - spec/data/file.rb
78
79
  - spec/data/file.yml
79
80
  - spec/data/result.txt
@@ -108,6 +109,7 @@ test_files:
108
109
  - spec/data/file.erb
109
110
  - spec/data/file.haml
110
111
  - spec/data/file.html
112
+ - spec/data/file.rake
111
113
  - spec/data/file.rb
112
114
  - spec/data/file.yml
113
115
  - spec/data/result.txt