i18n-js-assets 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +56 -0
- data/Rakefile +21 -0
- data/i18n-js-assets.gemspec +23 -0
- data/lib/i18n-js-assets.rb +7 -0
- data/lib/i18n-js-assets/processor.rb +46 -0
- data/lib/i18n-js-assets/railtie.rb +9 -0
- data/lib/i18n-js-assets/version.rb +5 -0
- data/spec/app/assets/javascripts/application.js +1 -0
- data/spec/app/assets/javascripts/i18n/translations.js.i18njs +1 -0
- data/spec/config/i18n-js.yml +2 -0
- data/spec/config/locales/en.yml +3 -0
- data/spec/config/locales/es.yml +3 -0
- data/spec/log/test.log +0 -0
- data/spec/processor_spec.rb +17 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/0TGG4strnS9VCrKg5IAPvdpqabFzfjJoxYSdYm5ihro.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/0eY8r3NjeD9fdoOShXKpsVpdH1jKQnwWx52C-B4Zdew.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/0riUBX-xAnCHYxQxiKuHgfQwr3fEdOjP_pU5T1J8l3c.cache +2 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/2AzkFeBliWpNOZqRYWdcgpn6qq2KQqQQhUsugTGTnAI.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/35f7ghn0_mSkJse_DDlsJXCH-aTRupAT38ebmrs-mOk.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/4WQBXO4vTppErpRc5K1HM82jj5SJHracrEnk4jmQRCY.cache +3 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/6ZRcOCLxuDpT3yENhV0aZMV_9gJI1TQwT77QMgIK37A.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/7a2W-xe7KVORjoLfqF5u7YLOvXiNUac9_wGnLl6Su0E.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/7boCXuGzdav81MPcjpSExjXwogaP70OGTjzM71PV3PQ.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/7sHVj7BzKNGoCFZ-kjevXptnptNgZyPNT5fLTp0FKWM.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/81rUcRAwllX3CIhsRXRBASug4DR0ab80NQn5gKVcrJQ.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/8tAhoU9B1TigzW0Xqag4FR3VemV2jgZE5lOCwtW2dn0.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/9-0DfGh6aoQkp2uOORK-KDzIjbVGG_tmfzBHiiDkJL0.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/9947MRIXBZZlIs2e2uu5e4JwuyoUz4FOZUPnPXHlUpU.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ATw-HFCljNcwJ2-e_wTnROfZbnLCogiFZ5Fg5Yh8Sb4.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ApElClNFEj6QTX7Ul2-O4qX3NIH2vaeK8noatReSmro.cache +2 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ApHoGQxwcRptNhfXJF_0QQYO79_9HKrWUR6Ms6HYyMw.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/BPBdHaZXRy26VkxJeR9bn6i9_nKLz-OXtKIwrlIGmps.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/CV1DkVWu2-JTjY2UN5j6oWBWj7Mq8sVhZ7Dh08TytWs.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/EHAlDYDntn17_yishOhQPB3FtisCTAYrxAJ3yMU8nLY.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/EYsEe08MA8Uw1S-16OjCG7Ii1q3sXFWk8SBOuYUcPs8.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/F_Lqv3cyMXGH1AjfyMu442ztwqqdAN78jvw3D9Z_QMY.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/Gu_PnxeyLXW98LHpDxlE-OIKE1rQYJu5nZZiviI55dM.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/HaJSlzbPk33aLK4Reo0BpyqXGIvgIeSKgPNVlZyRhrs.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/HbDKDH2JN_XyXyaChQWJ5N7tASQXnuup3xEO03zZ4Hc.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/HjNvkqQ2OZcfhOwtYH7PJ8U410e9nJ6Z9z7gZPLsScU.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/HoXEYriyqTy50oFKUBnr727o_n0QAnuwuW45sAHNr50.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/IXYpi0Zz5dRF7Gx6fg37WshI0Y1J92wf3uEENugBpvA.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/JwO18_SZpJhx_6zRpzFrsqyXomH2tWnPbg_OQXV59Bo.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/KO3NfRq14AVG64OPOQSveHHDFAvxIw8efzqSy7RFxkU.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/KxDS3J89t0kst_z-wBsMN1H7ePUqYAdRl4wMdsaBNSY.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/L2vwbr0cwgm0qW1FuZ_VPzSvK1Vy4fGFvA2ZVYDc5Js.cache +2 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/LEY95r7yjJ05--DGxpz2RO9mjpX6bfW__0LfspYgf54.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/LJwlYUVWX9A5d5F_1FwbWdn0N1VEv6CFzaRCau1ozVM.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/LUxJSgbE36LRmWl4Dp-FWAFDdk3gYEdMcV1vgBpfLrI.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/MKD5ATR0ZXGN21NCxZ_M5GiRMeo5oWbcu6kCDbyaMtc.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/No_dmRoPMIHiRkcPj1CEeVmynRfqX36-LPYeGxJ-gZc.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/NvGtE9n4Yk5sQUYKdNLyhQAHlawioR4hkjFzGA2N3_0.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/OOoGx4FoTR_WsHPZbQFRECX5ZF2zaEHPfE5MnW22Axc.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/Qo-0_hupmKRdmVjcpLB-iBD5ebhJu_VFPVnEITJXBws.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/TSBNHjSWXHIodyAgZYeqcmCMcdQ_xVnR4Op3XEbhQTw.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/UZ16yMTPWmwcDHYPYcdyzzvU_i6Qs2zSVY8RPFw4MpM.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/Xpeh2lygo1r2JCJeM4zoFpAZFFmoZocCdxr1x01ykpA.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/YgS78wW5O_M1BBIK1_ttlGXW9fYrbWW-c1lnbYAjXgs.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/_fjUOVq7VdVTRIoEaHM8dc8kMbuZMKTd9puafDvhXAU.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/a6WLa8ZPC7LFh1IXxigNkXyJNSiJgmOBbdLpPIcCK2g.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/aE-uoFK0v9VMpvwk2AuMAYI6R-uFQIAlubEojUaA044.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/b5OiMehPg7TIbXFMKkHTHFpQ0gghPCJefZ-VacZcZL4.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/dZAVBQBPnTeBqjXXfU-pfcGR2xnrWGykeKSGA0t3BJU.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/gJGBNnb1dP4_aKOwLCD1hx2HH74XUfLb0E9u26YmpXs.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/gsvSWa0fFKgTjOstOXGrsgm3Pt_5gDs6Eggcn3OZZDE.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/hzWfzU_dvpBXKfIMNmknvVYVRN_xOKG8LgEate7K7ek.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/iE05xqTvW-S0qz7F23qKR3PhjaChA59dm8TuIcXT4bI.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ifRrKzWfgw7qAq5S-MGGDPCs8RCuP8XEp9WVM8BmKz4.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ir0DEh3GlJFGd8_SbLRZ0tssB0HRaMXAIZaXYR5y7ks.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/j00cx4gIBGrODOXarP6Qjy0xeZaO2Jp8rTjmjbD_bNg.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/jwwbsek2OuRlzomee3PcYA25JJSINlJjHU_6xBzeHh4.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/m1nR-_fLfDm6M9s2lyM9QmkUa86QkgtV0s0GlImWdr0.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/mW4Y5AThUDjQcOPAUeELphUxCW4a7Yo4IpRsKZzkhoM.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/nYeoYQfWBXA_snnX8YVRdmp7AoOiQfbFD62LKROgjzY.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/naNJi1nxWlbEia063KrwvvLzdS0aVZHO4ikcY9Qxjbg.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/ne8IkfcDGMQFS6QivBzm12pM5uQ7_rOHSfI7gxIAYZg.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/nxn04gmzcW7V_Rg2p-7KnHLSK1MbrtPKTWtCATvPHRY.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/p8d2hJs-GMXj3Pfb_SettPpUIL01kwlQtMXdPqzmsDk.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/pMcchoEpkVfbuFqcqV-QIsT2GriAlr_g05Xp_A4CtaU.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/pTk5o7gQWGjIyqtoFRug56We6pv9N6sItqBddq0rDu0.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/rNWmnhTEQLwZXspZ5r3b35mFbgCz4c-F3gR_HAdxLzI.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/rYacQdERuQhBtFOmHLjnJ7z45Ygr3nbm2HDo8BCr5bs.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/rz-DkBu0biGdgtOMAzLEI-aB3pgaCUKGb8bekTZ-9K0.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/s8HTRJcLNQhpqHMPuEYqX1y9O2-6v7upJVTEqAx1Dx4.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/snRmTZnmi4ryjP0wUE23wFd4fBuo1hxpjyonEOZh3-w.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/spYrgZJWT16U2ks857dDVa--ObngZZUF7aOhbhT5Bzo.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/t-yibBlcVmGwWuNS0pvEdfGyAxL2oaY8T5pSdT7Kbxs.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/uByORhDkfZw1i-QtsStGha4C4z3sYOz-B9mQ0tVMUOs.cache +0 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/wDPT75aAPmkWMTxzeucffHw0mvHW-p4RfsfWRISMSv4.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/wLwiBaqts3mvXXj64NgQKvuOt5c5EFQbZ_gf5QPeCkk.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/wdtjFQCVbckEPM-Sm3OuOIQOQgyUHv53UPN_dyM42qw.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/x5iWQPToB48yLx3ZaFy7lGX2t_PbGXr4u_Ys5U9GP8o.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/xABx78Odel6ybIOMvX5E_OAVSgeyFtepOxzO-OHW3cI.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/zYA7lcYMc2JbrCxbVwEFcPCQRsz-mmxrrb-PxgRdycs.cache +1 -0
- data/spec/tmp/cache/assets/test/sprockets/v3.0/zacUSP_COvnw7zAmB4__BkcSG9ClG972-aaP6KPbm40.cache +1 -0
- data/spec/tmp/i18n-js.cache +1 -0
- metadata +200 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d0577d08c0b86263eff33413eb751267d0f8bfda
|
4
|
+
data.tar.gz: f9a6c783a2af9da61e310e5cfc80302590a7a15f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 67efc8f2b2717794ce6a763c3a22694ea48f38fa7a63e863b589954bbc3705f08a9a649615ed8d5bfdaa79403327fdb1621583c99696b36c7c05a20af673e97c
|
7
|
+
data.tar.gz: 93cb2d5c2224a08aa39c7bcf20a400e021cbd91d56e109694d38873f53a9f821602d89965eed8416e7e48d40d902da6fa5e0dd3e83fad36c1f98366ae7635b25
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
## i18n-js-assets
|
2
|
+
|
3
|
+
Compile your Javascript translations using the asset pipeline instead of rake tasks.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
`gem install i18n-js-assets`
|
8
|
+
|
9
|
+
or put it in your Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'i18n-js-assets'
|
13
|
+
```
|
14
|
+
|
15
|
+
This gem is designed to work with Rails. Adding it to your Gemfile should be enough to add it to your project - you shouldn't need to manually require it.
|
16
|
+
|
17
|
+
### What Dis?
|
18
|
+
|
19
|
+
The [i18n-js gem](https://github.com/fnando/i18n-js) brings your Rails translations (eg. config/locales/en.yml) the land of Javascript. Just add a config file, run a rake task, and your translations are now available in Javascript. Wouldn't it be cool if your js translations could be automatically compiled by the Rails asset pipeline instead? That's where i18n-js-assets can help. Instead of creating a single config file, you'll put smaller bits of config into individual files with an `.i18njs` extension. i18n-js-assets adds a custom processor to the asset pipeline to render the right translations in each file.
|
20
|
+
|
21
|
+
### Getting Started
|
22
|
+
|
23
|
+
Let's say you have an i18n-js config at `config/i18n-js.yml` that looks like this:
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
translations:
|
27
|
+
- file: "app/assets/javascripts/i18n/translations.js"
|
28
|
+
- file: "engines/my_engine/app/assets/javascripts/i18n/translations.js"
|
29
|
+
only: - '*.my_engine.*'
|
30
|
+
```
|
31
|
+
|
32
|
+
Break this file up into two separate files:
|
33
|
+
|
34
|
+
Here's `app/assets/javascripts/i18n/translations.js.i18njs`:
|
35
|
+
|
36
|
+
```yaml
|
37
|
+
---
|
38
|
+
```
|
39
|
+
|
40
|
+
And here's `engines/my_engine/app/assets/javascripts/i18n/translations.js.i18njs`
|
41
|
+
|
42
|
+
```yaml
|
43
|
+
only: - '*.my_engine.*'
|
44
|
+
```
|
45
|
+
|
46
|
+
Require these files as you normally would. For example in your app's main `application.js`:
|
47
|
+
|
48
|
+
```
|
49
|
+
//= require i18n/translations
|
50
|
+
```
|
51
|
+
|
52
|
+
Voilà! The translations should now be available in your Javascript code just as if you'd used i18n-js and its rake tasks.
|
53
|
+
|
54
|
+
## Authors
|
55
|
+
|
56
|
+
* Cameron C. Dutro: http://github.com/camertron
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
4
|
+
|
5
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
6
|
+
|
7
|
+
require 'bundler'
|
8
|
+
require 'rspec/core/rake_task'
|
9
|
+
require 'rubygems/package_task'
|
10
|
+
|
11
|
+
require 'rails'
|
12
|
+
require 'i18n-js-assets'
|
13
|
+
|
14
|
+
Bundler::GemHelper.install_tasks
|
15
|
+
|
16
|
+
task :default => :spec
|
17
|
+
|
18
|
+
desc 'Run specs'
|
19
|
+
RSpec::Core::RakeTask.new do |t|
|
20
|
+
t.pattern = './spec/**/*_spec.rb'
|
21
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
2
|
+
require 'i18n-js-assets/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "i18n-js-assets"
|
6
|
+
s.version = ::I18nJsAssets::VERSION
|
7
|
+
s.authors = ["Cameron Dutro"]
|
8
|
+
s.email = ["camertron@gmail.com"]
|
9
|
+
s.homepage = "http://github.com/camertron"
|
10
|
+
|
11
|
+
s.description = s.summary = 'Compile your Javascript translations using the asset pipeline instead of rake tasks.'
|
12
|
+
|
13
|
+
s.platform = Gem::Platform::RUBY
|
14
|
+
s.has_rdoc = true
|
15
|
+
|
16
|
+
s.add_dependency 'i18n-js'
|
17
|
+
s.add_dependency 'railties', '>= 3.1.0'
|
18
|
+
s.add_dependency 'sprockets-rails'
|
19
|
+
s.add_dependency 'tilt'
|
20
|
+
|
21
|
+
s.require_path = 'lib'
|
22
|
+
s.files = Dir["{lib,spec}/**/*", "Gemfile", "README.md", "Rakefile", "i18n-js-assets.gemspec"]
|
23
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module I18nJsAssets
|
4
|
+
class Processor < ::Tilt::Template
|
5
|
+
def prepare
|
6
|
+
# noop
|
7
|
+
end
|
8
|
+
|
9
|
+
def evaluate(scope, locals, &block)
|
10
|
+
options = (YAML.load(data) || {}).with_indifferent_access
|
11
|
+
only = options.fetch(:only, '*')
|
12
|
+
exceptions = [options.fetch(:except, [])].flatten
|
13
|
+
|
14
|
+
# handle newer and older versions of i18n-js
|
15
|
+
translations = if i18n_js.method(:segment_for_scope).arity == 2
|
16
|
+
i18n_js.segment_for_scope(only, exceptions)
|
17
|
+
else
|
18
|
+
i18n_js.segment_for_scope(only)
|
19
|
+
end
|
20
|
+
|
21
|
+
construct_javascript_from(translations)
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def construct_javascript_from(translations)
|
27
|
+
%(I18n.translations || (I18n.translations = {});\n).tap do |result|
|
28
|
+
translations.each_pair do |locale, locale_translations|
|
29
|
+
result << construct_javascript_for_locale(locale, locale_translations)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def construct_javascript_for_locale(locale, translations)
|
35
|
+
%(I18n.translations["#{locale}"] = #{translations.to_json};\n)
|
36
|
+
end
|
37
|
+
|
38
|
+
def i18n_js
|
39
|
+
if Kernel.const_defined?(:SimplesIdeias)
|
40
|
+
SimplesIdeias::I18n
|
41
|
+
else
|
42
|
+
I18n::JS
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require i18n/translations
|
@@ -0,0 +1 @@
|
|
1
|
+
only: '*.my_app.*'
|
data/spec/log/test.log
ADDED
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe I18nJsAssets do
|
6
|
+
it 'requires javascript translations' do
|
7
|
+
asset = Rails.application.assets.find_asset('application.js')
|
8
|
+
|
9
|
+
expect(asset.source).to include(
|
10
|
+
%Q(I18n.translations["en"] = {"my_app":{"teapot":"I'm a little teapot"}};)
|
11
|
+
)
|
12
|
+
|
13
|
+
expect(asset.source).to include(
|
14
|
+
%Q(I18n.translations["es"] = {"my_app":{"teapot":"Soy una tetera pequeña"}};)
|
15
|
+
)
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require 'rspec'
|
4
|
+
require 'pry-nav'
|
5
|
+
|
6
|
+
require 'rails'
|
7
|
+
require 'tilt'
|
8
|
+
require 'i18n-js'
|
9
|
+
require 'sprockets/railtie'
|
10
|
+
|
11
|
+
ENV['RAILS_ENV'] ||= 'test'
|
12
|
+
|
13
|
+
module I18nJsAssets
|
14
|
+
class DummyApplication < ::Rails::Application
|
15
|
+
config.eager_load = false
|
16
|
+
config.assets.enabled = true
|
17
|
+
config.assets.compile = true
|
18
|
+
config.assets.allow_debugging = true
|
19
|
+
config.root = config.root.join('./spec') # app lives in ./spec
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'i18n-js-assets'
|
24
|
+
|
25
|
+
I18nJsAssets::DummyApplication.initialize!
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/0TGG4strnS9VCrKg5IAPvdpqabFzfjJoxYSdYm5ihro.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%F��ApxW��G�x�~g�#��Y/����C��
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/0eY8r3NjeD9fdoOShXKpsVpdH1jKQnwWx52C-B4Zdew.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=599805a36cb143f187b209e43892180cb40c8cd4cc47da4d0c150e25944eaf99:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/2AzkFeBliWpNOZqRYWdcgpn6qq2KQqQQhUsugTGTnAI.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�V�"�T���|��m��i�h"E��L����
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/35f7ghn0_mSkJse_DDlsJXCH-aTRupAT38ebmrs-mOk.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/6ZRcOCLxuDpT3yENhV0aZMV_9gJI1TQwT77QMgIK37A.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��GBa&ztbSr]��3�V M����q�$���}]
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/7a2W-xe7KVORjoLfqF5u7YLOvXiNUac9_wGnLl6Su0E.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%j��A*=F!��ܠu��U���}ޚ��$����
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/7boCXuGzdav81MPcjpSExjXwogaP70OGTjzM71PV3PQ.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/7sHVj7BzKNGoCFZ-kjevXptnptNgZyPNT5fLTp0FKWM.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/81rUcRAwllX3CIhsRXRBASug4DR0ab80NQn5gKVcrJQ.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/8tAhoU9B1TigzW0Xqag4FR3VemV2jgZE5lOCwtW2dn0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=f6ba10f975849c45d5a8d432f22e5ee9e7776768f3bad221c3e8741e9176088f:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/9-0DfGh6aoQkp2uOORK-KDzIjbVGG_tmfzBHiiDkJL0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=a3b81a3f12f10a27a35f49bd9dfcd13a675257ba28ff718a1cc82e71585b9b8b:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/9947MRIXBZZlIs2e2uu5e4JwuyoUz4FOZUPnPXHlUpU.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��vp$KNk�c���h3�����B}��s���
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/ATw-HFCljNcwJ2-e_wTnROfZbnLCogiFZ5Fg5Yh8Sb4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=69d3034b52cdfce3a5790184397b81d9ffcddcdf6ccc91de2a90316a6fdffa54:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/ApHoGQxwcRptNhfXJF_0QQYO79_9HKrWUR6Ms6HYyMw.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=35fb36fc4312565ca9b820f100c771f9b4c09e4ce581c9e413c65e45ed0f8653:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/BPBdHaZXRy26VkxJeR9bn6i9_nKLz-OXtKIwrlIGmps.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��nv,8������S��j�LЂ�Ǣ�:��
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/CV1DkVWu2-JTjY2UN5j6oWBWj7Mq8sVhZ7Dh08TytWs.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=b9bb1f575e322437488a6010e0c6f4013cc5f2a25ea1edb7b8751997b3db7e0a:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/EHAlDYDntn17_yishOhQPB3FtisCTAYrxAJ3yMU8nLY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%� H.�����G��Ñ;�S�D��(��]�
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/EYsEe08MA8Uw1S-16OjCG7Ii1q3sXFWk8SBOuYUcPs8.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�;*+���a>;2`��R��HS����MDz�>��
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/F_Lqv3cyMXGH1AjfyMu442ztwqqdAN78jvw3D9Z_QMY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��iP�:��@v���3�\}�8����E���6��
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/Gu_PnxeyLXW98LHpDxlE-OIKE1rQYJu5nZZiviI55dM.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=d2f34518584537e6f7d4c08bc1e948ac3fc81898728ca88cfeabd087e291a00f:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/HaJSlzbPk33aLK4Reo0BpyqXGIvgIeSKgPNVlZyRhrs.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/HbDKDH2JN_XyXyaChQWJ5N7tASQXnuup3xEO03zZ4Hc.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/HjNvkqQ2OZcfhOwtYH7PJ8U410e9nJ6Z9z7gZPLsScU.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=e9bdb574ed4557d071c3dda3a402c8092eab6e60676feed41ab32482982de1ea:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/HoXEYriyqTy50oFKUBnr727o_n0QAnuwuW45sAHNr50.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��B�����șo�$'�A�d��L���xR�U
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/IXYpi0Zz5dRF7Gx6fg37WshI0Y1J92wf3uEENugBpvA.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/JwO18_SZpJhx_6zRpzFrsqyXomH2tWnPbg_OQXV59Bo.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/KO3NfRq14AVG64OPOQSveHHDFAvxIw8efzqSy7RFxkU.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/KxDS3J89t0kst_z-wBsMN1H7ePUqYAdRl4wMdsaBNSY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��iP�:��@v���3�\}�8����E���6��
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/LEY95r7yjJ05--DGxpz2RO9mjpX6bfW__0LfspYgf54.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/LJwlYUVWX9A5d5F_1FwbWdn0N1VEv6CFzaRCau1ozVM.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=72633667bcb69451ee6f6317972c5db711244c752ddd95200f6e2d76252c8e0a:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/LUxJSgbE36LRmWl4Dp-FWAFDdk3gYEdMcV1vgBpfLrI.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=b7be57d4eadd865efc5234613e5a578e608049517a3e8fa59967381ced070a8f:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/MKD5ATR0ZXGN21NCxZ_M5GiRMeo5oWbcu6kCDbyaMtc.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/No_dmRoPMIHiRkcPj1CEeVmynRfqX36-LPYeGxJ-gZc.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/NvGtE9n4Yk5sQUYKdNLyhQAHlawioR4hkjFzGA2N3_0.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/OOoGx4FoTR_WsHPZbQFRECX5ZF2zaEHPfE5MnW22Axc.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%NJ�o�%���w���rw�O�Gښ����=m���
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/Qo-0_hupmKRdmVjcpLB-iBD5ebhJu_VFPVnEITJXBws.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/TSBNHjSWXHIodyAgZYeqcmCMcdQ_xVnR4Op3XEbhQTw.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/UZ16yMTPWmwcDHYPYcdyzzvU_i6Qs2zSVY8RPFw4MpM.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/Xpeh2lygo1r2JCJeM4zoFpAZFFmoZocCdxr1x01ykpA.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=eb3a9806eb83d79e3b3a2de4c330b393f648de985c239599de685b7c12b173a2:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/YgS78wW5O_M1BBIK1_ttlGXW9fYrbWW-c1lnbYAjXgs.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/_fjUOVq7VdVTRIoEaHM8dc8kMbuZMKTd9puafDvhXAU.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/a6WLa8ZPC7LFh1IXxigNkXyJNSiJgmOBbdLpPIcCK2g.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�o���d�����ԅ��S_�K&���L>=Lb�
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/aE-uoFK0v9VMpvwk2AuMAYI6R-uFQIAlubEojUaA044.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/b5OiMehPg7TIbXFMKkHTHFpQ0gghPCJefZ-VacZcZL4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%A��n�;�D��������h5.�[�C��je^
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/dZAVBQBPnTeBqjXXfU-pfcGR2xnrWGykeKSGA0t3BJU.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/gJGBNnb1dP4_aKOwLCD1hx2HH74XUfLb0E9u26YmpXs.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/gsvSWa0fFKgTjOstOXGrsgm3Pt_5gDs6Eggcn3OZZDE.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=c9c2715b38ea6ee719002881ff3269122cc36525e6b910c46a7e05759309a910:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/hzWfzU_dvpBXKfIMNmknvVYVRN_xOKG8LgEate7K7ek.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/iE05xqTvW-S0qz7F23qKR3PhjaChA59dm8TuIcXT4bI.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/ifRrKzWfgw7qAq5S-MGGDPCs8RCuP8XEp9WVM8BmKz4.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/ir0DEh3GlJFGd8_SbLRZ0tssB0HRaMXAIZaXYR5y7ks.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/j00cx4gIBGrODOXarP6Qjy0xeZaO2Jp8rTjmjbD_bNg.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/jwwbsek2OuRlzomee3PcYA25JJSINlJjHU_6xBzeHh4.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/m1nR-_fLfDm6M9s2lyM9QmkUa86QkgtV0s0GlImWdr0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=3d2e6856d0a61b6a2f578e798eadec1fc01c175e55bc1ecddbdc3b434af342cb:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/mW4Y5AThUDjQcOPAUeELphUxCW4a7Yo4IpRsKZzkhoM.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/nYeoYQfWBXA_snnX8YVRdmp7AoOiQfbFD62LKROgjzY.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/naNJi1nxWlbEia063KrwvvLzdS0aVZHO4ikcY9Qxjbg.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%�S��W?t��u�·gB���ҳ�*�"�
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/ne8IkfcDGMQFS6QivBzm12pM5uQ7_rOHSfI7gxIAYZg.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=8c83a3e80dca54959878216fda8dba672fc7a9a7b5f7c5df2f76d4612e979cdb:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/nxn04gmzcW7V_Rg2p-7KnHLSK1MbrtPKTWtCATvPHRY.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=9cf84ebb20d911b7f917a41b8c37ac1122d6e68ba419d424088e461d09ce8ac7:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/p8d2hJs-GMXj3Pfb_SettPpUIL01kwlQtMXdPqzmsDk.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/pMcchoEpkVfbuFqcqV-QIsT2GriAlr_g05Xp_A4CtaU.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/pTk5o7gQWGjIyqtoFRug56We6pv9N6sItqBddq0rDu0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=30d7e6ccfb4476d39520551f3f42aad8daac24b2268f1769d6c8d2f48540bfb3:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/rNWmnhTEQLwZXspZ5r3b35mFbgCz4c-F3gR_HAdxLzI.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/rYacQdERuQhBtFOmHLjnJ7z45Ygr3nbm2HDo8BCr5bs.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=40da50378dcb61a2118df1f3b4278f8ffac4b8165ce53b55e5851c4e840df717:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/rz-DkBu0biGdgtOMAzLEI-aB3pgaCUKGb8bekTZ-9K0.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=758cf9c5f609bfe238e640b074c3cc09e2f63dd51789a313eb1e2efa323e00d1:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/s8HTRJcLNQhpqHMPuEYqX1y9O2-6v7upJVTEqAx1Dx4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=892c6233514b34195288a7e8f3509e64ac427cf9c3d31e1f9748d6d151613d39:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/snRmTZnmi4ryjP0wUE23wFd4fBuo1hxpjyonEOZh3-w.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%r��+�"��Z%P�1Y9H���b%�-g��\�[
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/spYrgZJWT16U2ks857dDVa--ObngZZUF7aOhbhT5Bzo.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/t-yibBlcVmGwWuNS0pvEdfGyAxL2oaY8T5pSdT7Kbxs.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&id=32c41862736f225a2d6414f6966d0345a9d2e0498f97566e49778cebd23c1cd3:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/uByORhDkfZw1i-QtsStGha4C4z3sYOz-B9mQ0tVMUOs.cache
ADDED
Binary file
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/wDPT75aAPmkWMTxzeucffHw0mvHW-p4RfsfWRISMSv4.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%��vp$KNk�c���h3�����B}��s���
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/wLwiBaqts3mvXXj64NgQKvuOt5c5EFQbZ_gf5QPeCkk.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=3cbd9fb31d188298ca2fe80b03333e09b0ed6a22e8064a83d851ed84e7a1c8f2:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/wdtjFQCVbckEPM-Sm3OuOIQOQgyUHv53UPN_dyM42qw.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=151b98c20ec48a46a3359abb7f6af0e931f2a4a5515f6f36d0a10eec3cd679de:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/x5iWQPToB48yLx3ZaFy7lGX2t_PbGXr4u_Ys5U9GP8o.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=29de8c05e5bc4338788e7bbd5efa9f4e2ef9201db00d691207999b72106784fa:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/xABx78Odel6ybIOMvX5E_OAVSgeyFtepOxzO-OHW3cI.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=fff3d45b040c0c21e656506d94a64cb32e0d3d32859f5c3490c62d432b0ab32f:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/zYA7lcYMc2JbrCxbVwEFcPCQRsz-mmxrrb-PxgRdycs.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
I"�file:///Users/cameron/workspace/i18n-js-assets/spec/app/assets/javascripts/i18n/translations.js.i18njs?type=application/javascript&pipeline=self&id=e8d417bdafc8aded8d460df7a5634783c7804d6197ff0ddbb7a27dfd5a8bc10a:ET
|
data/spec/tmp/cache/assets/test/sprockets/v3.0/zacUSP_COvnw7zAmB4__BkcSG9ClG972-aaP6KPbm40.cache
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"%Z���"CSU���|�)=�\�T�v�'Kf
|
@@ -0,0 +1 @@
|
|
1
|
+
1705501701675656951
|
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: i18n-js-assets
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cameron Dutro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: i18n-js
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: railties
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.1.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sprockets-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tilt
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Compile your Javascript translations using the asset pipeline instead
|
70
|
+
of rake tasks.
|
71
|
+
email:
|
72
|
+
- camertron@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- Gemfile
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- i18n-js-assets.gemspec
|
81
|
+
- lib/i18n-js-assets.rb
|
82
|
+
- lib/i18n-js-assets/processor.rb
|
83
|
+
- lib/i18n-js-assets/railtie.rb
|
84
|
+
- lib/i18n-js-assets/version.rb
|
85
|
+
- spec/app/assets/javascripts/application.js
|
86
|
+
- spec/app/assets/javascripts/i18n/translations.js.i18njs
|
87
|
+
- spec/config/i18n-js.yml
|
88
|
+
- spec/config/locales/en.yml
|
89
|
+
- spec/config/locales/es.yml
|
90
|
+
- spec/log/test.log
|
91
|
+
- spec/processor_spec.rb
|
92
|
+
- spec/spec_helper.rb
|
93
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/0TGG4strnS9VCrKg5IAPvdpqabFzfjJoxYSdYm5ihro.cache
|
94
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/0eY8r3NjeD9fdoOShXKpsVpdH1jKQnwWx52C-B4Zdew.cache
|
95
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/0riUBX-xAnCHYxQxiKuHgfQwr3fEdOjP_pU5T1J8l3c.cache
|
96
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/2AzkFeBliWpNOZqRYWdcgpn6qq2KQqQQhUsugTGTnAI.cache
|
97
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/35f7ghn0_mSkJse_DDlsJXCH-aTRupAT38ebmrs-mOk.cache
|
98
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/4WQBXO4vTppErpRc5K1HM82jj5SJHracrEnk4jmQRCY.cache
|
99
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/6ZRcOCLxuDpT3yENhV0aZMV_9gJI1TQwT77QMgIK37A.cache
|
100
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/7a2W-xe7KVORjoLfqF5u7YLOvXiNUac9_wGnLl6Su0E.cache
|
101
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/7boCXuGzdav81MPcjpSExjXwogaP70OGTjzM71PV3PQ.cache
|
102
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/7sHVj7BzKNGoCFZ-kjevXptnptNgZyPNT5fLTp0FKWM.cache
|
103
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/81rUcRAwllX3CIhsRXRBASug4DR0ab80NQn5gKVcrJQ.cache
|
104
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/8tAhoU9B1TigzW0Xqag4FR3VemV2jgZE5lOCwtW2dn0.cache
|
105
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/9-0DfGh6aoQkp2uOORK-KDzIjbVGG_tmfzBHiiDkJL0.cache
|
106
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/9947MRIXBZZlIs2e2uu5e4JwuyoUz4FOZUPnPXHlUpU.cache
|
107
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ATw-HFCljNcwJ2-e_wTnROfZbnLCogiFZ5Fg5Yh8Sb4.cache
|
108
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ApElClNFEj6QTX7Ul2-O4qX3NIH2vaeK8noatReSmro.cache
|
109
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ApHoGQxwcRptNhfXJF_0QQYO79_9HKrWUR6Ms6HYyMw.cache
|
110
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/BPBdHaZXRy26VkxJeR9bn6i9_nKLz-OXtKIwrlIGmps.cache
|
111
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/CV1DkVWu2-JTjY2UN5j6oWBWj7Mq8sVhZ7Dh08TytWs.cache
|
112
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/EHAlDYDntn17_yishOhQPB3FtisCTAYrxAJ3yMU8nLY.cache
|
113
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/EYsEe08MA8Uw1S-16OjCG7Ii1q3sXFWk8SBOuYUcPs8.cache
|
114
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/F_Lqv3cyMXGH1AjfyMu442ztwqqdAN78jvw3D9Z_QMY.cache
|
115
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/Gu_PnxeyLXW98LHpDxlE-OIKE1rQYJu5nZZiviI55dM.cache
|
116
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/HaJSlzbPk33aLK4Reo0BpyqXGIvgIeSKgPNVlZyRhrs.cache
|
117
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/HbDKDH2JN_XyXyaChQWJ5N7tASQXnuup3xEO03zZ4Hc.cache
|
118
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/HjNvkqQ2OZcfhOwtYH7PJ8U410e9nJ6Z9z7gZPLsScU.cache
|
119
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/HoXEYriyqTy50oFKUBnr727o_n0QAnuwuW45sAHNr50.cache
|
120
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/IXYpi0Zz5dRF7Gx6fg37WshI0Y1J92wf3uEENugBpvA.cache
|
121
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/JwO18_SZpJhx_6zRpzFrsqyXomH2tWnPbg_OQXV59Bo.cache
|
122
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/KO3NfRq14AVG64OPOQSveHHDFAvxIw8efzqSy7RFxkU.cache
|
123
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/KxDS3J89t0kst_z-wBsMN1H7ePUqYAdRl4wMdsaBNSY.cache
|
124
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/L2vwbr0cwgm0qW1FuZ_VPzSvK1Vy4fGFvA2ZVYDc5Js.cache
|
125
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/LEY95r7yjJ05--DGxpz2RO9mjpX6bfW__0LfspYgf54.cache
|
126
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/LJwlYUVWX9A5d5F_1FwbWdn0N1VEv6CFzaRCau1ozVM.cache
|
127
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/LUxJSgbE36LRmWl4Dp-FWAFDdk3gYEdMcV1vgBpfLrI.cache
|
128
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/MKD5ATR0ZXGN21NCxZ_M5GiRMeo5oWbcu6kCDbyaMtc.cache
|
129
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/No_dmRoPMIHiRkcPj1CEeVmynRfqX36-LPYeGxJ-gZc.cache
|
130
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/NvGtE9n4Yk5sQUYKdNLyhQAHlawioR4hkjFzGA2N3_0.cache
|
131
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/OOoGx4FoTR_WsHPZbQFRECX5ZF2zaEHPfE5MnW22Axc.cache
|
132
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/Qo-0_hupmKRdmVjcpLB-iBD5ebhJu_VFPVnEITJXBws.cache
|
133
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/TSBNHjSWXHIodyAgZYeqcmCMcdQ_xVnR4Op3XEbhQTw.cache
|
134
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/UZ16yMTPWmwcDHYPYcdyzzvU_i6Qs2zSVY8RPFw4MpM.cache
|
135
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/Xpeh2lygo1r2JCJeM4zoFpAZFFmoZocCdxr1x01ykpA.cache
|
136
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/YgS78wW5O_M1BBIK1_ttlGXW9fYrbWW-c1lnbYAjXgs.cache
|
137
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/_fjUOVq7VdVTRIoEaHM8dc8kMbuZMKTd9puafDvhXAU.cache
|
138
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/a6WLa8ZPC7LFh1IXxigNkXyJNSiJgmOBbdLpPIcCK2g.cache
|
139
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/aE-uoFK0v9VMpvwk2AuMAYI6R-uFQIAlubEojUaA044.cache
|
140
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/b5OiMehPg7TIbXFMKkHTHFpQ0gghPCJefZ-VacZcZL4.cache
|
141
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/dZAVBQBPnTeBqjXXfU-pfcGR2xnrWGykeKSGA0t3BJU.cache
|
142
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/gJGBNnb1dP4_aKOwLCD1hx2HH74XUfLb0E9u26YmpXs.cache
|
143
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/gsvSWa0fFKgTjOstOXGrsgm3Pt_5gDs6Eggcn3OZZDE.cache
|
144
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/hzWfzU_dvpBXKfIMNmknvVYVRN_xOKG8LgEate7K7ek.cache
|
145
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/iE05xqTvW-S0qz7F23qKR3PhjaChA59dm8TuIcXT4bI.cache
|
146
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ifRrKzWfgw7qAq5S-MGGDPCs8RCuP8XEp9WVM8BmKz4.cache
|
147
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ir0DEh3GlJFGd8_SbLRZ0tssB0HRaMXAIZaXYR5y7ks.cache
|
148
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/j00cx4gIBGrODOXarP6Qjy0xeZaO2Jp8rTjmjbD_bNg.cache
|
149
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/jwwbsek2OuRlzomee3PcYA25JJSINlJjHU_6xBzeHh4.cache
|
150
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/m1nR-_fLfDm6M9s2lyM9QmkUa86QkgtV0s0GlImWdr0.cache
|
151
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/mW4Y5AThUDjQcOPAUeELphUxCW4a7Yo4IpRsKZzkhoM.cache
|
152
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/nYeoYQfWBXA_snnX8YVRdmp7AoOiQfbFD62LKROgjzY.cache
|
153
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/naNJi1nxWlbEia063KrwvvLzdS0aVZHO4ikcY9Qxjbg.cache
|
154
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/ne8IkfcDGMQFS6QivBzm12pM5uQ7_rOHSfI7gxIAYZg.cache
|
155
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/nxn04gmzcW7V_Rg2p-7KnHLSK1MbrtPKTWtCATvPHRY.cache
|
156
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/p8d2hJs-GMXj3Pfb_SettPpUIL01kwlQtMXdPqzmsDk.cache
|
157
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/pMcchoEpkVfbuFqcqV-QIsT2GriAlr_g05Xp_A4CtaU.cache
|
158
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/pTk5o7gQWGjIyqtoFRug56We6pv9N6sItqBddq0rDu0.cache
|
159
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/rNWmnhTEQLwZXspZ5r3b35mFbgCz4c-F3gR_HAdxLzI.cache
|
160
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/rYacQdERuQhBtFOmHLjnJ7z45Ygr3nbm2HDo8BCr5bs.cache
|
161
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/rz-DkBu0biGdgtOMAzLEI-aB3pgaCUKGb8bekTZ-9K0.cache
|
162
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/s8HTRJcLNQhpqHMPuEYqX1y9O2-6v7upJVTEqAx1Dx4.cache
|
163
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/snRmTZnmi4ryjP0wUE23wFd4fBuo1hxpjyonEOZh3-w.cache
|
164
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/spYrgZJWT16U2ks857dDVa--ObngZZUF7aOhbhT5Bzo.cache
|
165
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/t-yibBlcVmGwWuNS0pvEdfGyAxL2oaY8T5pSdT7Kbxs.cache
|
166
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/uByORhDkfZw1i-QtsStGha4C4z3sYOz-B9mQ0tVMUOs.cache
|
167
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/wDPT75aAPmkWMTxzeucffHw0mvHW-p4RfsfWRISMSv4.cache
|
168
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/wLwiBaqts3mvXXj64NgQKvuOt5c5EFQbZ_gf5QPeCkk.cache
|
169
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/wdtjFQCVbckEPM-Sm3OuOIQOQgyUHv53UPN_dyM42qw.cache
|
170
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/x5iWQPToB48yLx3ZaFy7lGX2t_PbGXr4u_Ys5U9GP8o.cache
|
171
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/xABx78Odel6ybIOMvX5E_OAVSgeyFtepOxzO-OHW3cI.cache
|
172
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/zYA7lcYMc2JbrCxbVwEFcPCQRsz-mmxrrb-PxgRdycs.cache
|
173
|
+
- spec/tmp/cache/assets/test/sprockets/v3.0/zacUSP_COvnw7zAmB4__BkcSG9ClG972-aaP6KPbm40.cache
|
174
|
+
- spec/tmp/i18n-js.cache
|
175
|
+
homepage: http://github.com/camertron
|
176
|
+
licenses: []
|
177
|
+
metadata: {}
|
178
|
+
post_install_message:
|
179
|
+
rdoc_options: []
|
180
|
+
require_paths:
|
181
|
+
- lib
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
requirements: []
|
193
|
+
rubyforge_project:
|
194
|
+
rubygems_version: 2.2.3
|
195
|
+
signing_key:
|
196
|
+
specification_version: 4
|
197
|
+
summary: Compile your Javascript translations using the asset pipeline instead of
|
198
|
+
rake tasks.
|
199
|
+
test_files: []
|
200
|
+
has_rdoc: true
|