javascript_localize 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
@@ -0,0 +1,53 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "javascript_localize"
16
+ gem.homepage = "http://github.com/jinzhu/javascript_localize"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{javascript localize solution}
19
+ gem.description = %Q{javascript localize solution}
20
+ gem.email = "wosmvp@gmail.com"
21
+ gem.authors = ["Jinzhu"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rake/testtask'
30
+ Rake::TestTask.new(:test) do |test|
31
+ test.libs << 'lib' << 'test'
32
+ test.pattern = 'test/**/test_*.rb'
33
+ test.verbose = true
34
+ end
35
+
36
+ require 'rcov/rcovtask'
37
+ Rcov::RcovTask.new do |test|
38
+ test.libs << 'test'
39
+ test.pattern = 'test/**/test_*.rb'
40
+ test.verbose = true
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "javascript_localize #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.2
@@ -16,7 +16,7 @@ namespace :javascript_localize do
16
16
  result = {}
17
17
 
18
18
  I18n.available_locales.map do |x|
19
- file = File.join(RAILS_ROOT,'js_locales',"#{x.to_s}.yml")
19
+ file = File.join(RAILS_ROOT,"config","js_locales","#{x.to_s}.yml")
20
20
  result.update({x => file})
21
21
  result.update({"#{x.to_s}_content" =>
22
22
  File.exist?(file) ? (YAML.load_file(file) || {}) : {}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javascript_localize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jinzhu
@@ -88,11 +88,14 @@ extra_rdoc_files:
88
88
  - LICENSE.txt
89
89
  - README
90
90
  files:
91
+ - Gemfile
92
+ - LICENSE.txt
91
93
  - README
94
+ - Rakefile
95
+ - VERSION
92
96
  - init.rb
93
97
  - lib/javascript_localize.rb
94
98
  - lib/tasks/javascript_localize.rake
95
- - LICENSE.txt
96
99
  has_rdoc: true
97
100
  homepage: http://github.com/jinzhu/javascript_localize
98
101
  licenses: