yaml_strings 0.0.3 → 0.0.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # YamlStrings
2
2
 
3
3
  Converts a YAML file, specifically the ones typically used for locale and
4
- translation files in Rails, to an old style Apple ASCII Property List,
5
- http://bit.ly/old_style_ascii_property_list
4
+ translation files in Rails, to an old style Apple ASCII Property List
5
+ http://bit.ly/old_style_ascii_property_list, and vice versa.
6
6
 
7
7
  ## Installation
8
8
 
@@ -21,6 +21,7 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
  $ rake yaml_strings:yaml_to_strings YAML_FILE=<path_to_file> > your_file_name.strings
24
+ $ rake yaml_strings:strings_to_yaml STRINGS_FILE=./en.strings YAML_FILE=./en.yml
24
25
 
25
26
  ## Contributing
26
27
 
@@ -1,3 +1,3 @@
1
1
  module YamlStrings
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -13,7 +13,7 @@ describe StringsToHashEncoder do
13
13
 
14
14
  it "should work with a more complicated strings file" do
15
15
  subject.strings_array = ["{\n", "en.app_name = awesome;", "en.helpers.create = \"Create Something\";", "}"]
16
- subject.to_hash.should eql({ "en" => { "app_name" => "awesome", "helpers" => { "create" => "\"Create Something\"" } } })
16
+ subject.to_hash.should eql({ "en" => { "app_name" => "awesome", "helpers" => { "create" => "Create Something" } } })
17
17
  end
18
18
  end
19
19
 
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
5
5
  gem.authors = ["Jonathan R. Wallace"]
6
6
  gem.email = ["jonathan.wallace@gmail.com"]
7
7
  gem.description = %q{Convert YAML files to .string format and vice versa.}
8
- gem.summary = %q{Converts a YAML file, specifically the ones typically used for locale and translations in Rails, to an old style Apple ASCII Property List, http://bit.ly/old_style_ascii_property_list}
8
+ gem.summary = %q{Converts a YAML file, specifically the ones typically used for locale and translations in Rails, to an old style Apple ASCII Property List http://bit.ly/old_style_ascii_property_list, and vice versa.}
9
9
  gem.homepage = ""
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_strings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fakefs
16
- requirement: &70219305851880 !ruby/object:Gem::Requirement
16
+ requirement: &70327426419620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70219305851880
24
+ version_requirements: *70327426419620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70219305851140 !ruby/object:Gem::Requirement
27
+ requirement: &70327426419000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70219305851140
35
+ version_requirements: *70327426419000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70219305850180 !ruby/object:Gem::Requirement
38
+ requirement: &70327426418440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70219305850180
46
+ version_requirements: *70327426418440
47
47
  description: Convert YAML files to .string format and vice versa.
48
48
  email:
49
49
  - jonathan.wallace@gmail.com
@@ -91,7 +91,8 @@ rubygems_version: 1.8.17
91
91
  signing_key:
92
92
  specification_version: 3
93
93
  summary: Converts a YAML file, specifically the ones typically used for locale and
94
- translations in Rails, to an old style Apple ASCII Property List, http://bit.ly/old_style_ascii_property_list
94
+ translations in Rails, to an old style Apple ASCII Property List http://bit.ly/old_style_ascii_property_list,
95
+ and vice versa.
95
96
  test_files:
96
97
  - spec/lib/strings_to_hash_encoder_spec.rb
97
98
  - spec/lib/yaml_strings_spec.rb