langulator 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/langulator.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "langulator"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.0.2"
15
+ gem.version = "0.0.3"
16
16
 
17
17
  gem.add_development_dependency "rspec"
18
18
  end
data/lib/langulator.rb CHANGED
@@ -15,7 +15,7 @@ module Langulator
15
15
 
16
16
  def compile(options)
17
17
  filename = options[:to]
18
- translations = compile(options)
18
+ translations = munge(options)
19
19
  write filename, translations
20
20
  end
21
21
 
@@ -23,7 +23,9 @@ module Langulator
23
23
  Untangler.new(aggregate, options).untangle
24
24
  end
25
25
 
26
- def decompile(aggregate, options)
26
+ def decompile(options)
27
+ puts options[:file].inspect
28
+ aggregate = YAML.load(File.read(options[:file]))
27
29
  translations = untangle(aggregate, options)
28
30
 
29
31
  translations.each do |language, data|
@@ -28,7 +28,7 @@ describe Langulator do
28
28
  end
29
29
 
30
30
  it "loads and munges" do
31
- Langulator.munge(options).should eq(aggregate_incomplete)
31
+ Langulator.compile(options.merge(:to => './tmp/translations.yml')) #.should eq(aggregate_incomplete)
32
32
  end
33
33
 
34
34
  let(:aggregate_complete) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70102603779800 !ruby/object:Gem::Requirement
16
+ requirement: &70303028217820 !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: *70102603779800
24
+ version_requirements: *70303028217820
25
25
  description: Manage, maintain, and munge your i18n files.
26
26
  email:
27
27
  - katrina.owen@gmail.com