tax_jp 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 583a0222e9b789e9c28edee7cbc0d58a1598d2e6
4
- data.tar.gz: a7231e2900f894acec619d36880727656ff9d098
3
+ metadata.gz: 5ee201740caf3969b9dab28cb9bf98865a4cb579
4
+ data.tar.gz: 4efb2ee14ca93dce8de611f5239c87347d5efe84
5
5
  SHA512:
6
- metadata.gz: 9d7a6d92ef6d8a4630d992ca61747ea017bd43692ac93fd8d18ec025346881fad3afaf6802688c832662fe38fed9531d9cee3ddb64de292c7fa49fddbe3b2bec
7
- data.tar.gz: e59861c04859ad920ad15b85dd9aabbf05d9b3a22e98d0b7996aaf790ef47d5d08f0bd99dcdb95f87ce585c5e771989dc6cf21e3641da2647018c36315beb819
6
+ metadata.gz: a4efb1455831ffc8e6d95ea71fdf2f4216b148253c38f2d79aaf3ba3059940646a90783bdbb8d031cb4c1ca52cbf32bcb98bfc02a4e661fcc1261e5662606d1b
7
+ data.tar.gz: 300393d90b61f73de8f2a9b6080e88d2118ddc1969fd026cd871ef10e15b5a498ffa66a9083f98cc9d54c3acd0091a85ddf41fcc97d38c921031bd61ed059232
data/lib/tasks/build.rake CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'rake'
2
+ require 'tax_jp'
2
3
 
3
4
  namespace :taxjp do
4
5
  task :build do
5
- js_dir = 'app/assets/javascripts'
6
- TaxJp::Utils.render 'app/assets/javascripts/tax.js.erb'
6
+ TaxJp::Utils.render 'app/assets/javascripts/tax.js'
7
7
  end
8
8
  end
@@ -1,11 +1,6 @@
1
1
  module TaxJp
2
2
  module Rails
3
3
  class Railtie < ::Rails::Railtie
4
-
5
- rake_tasks do
6
- require 'tax_jp/tasks'
7
- end
8
-
9
4
  end
10
5
  end
11
6
  end
data/lib/tax_jp/tasks.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'tax_jp'
2
-
3
- Dir[File.join(TaxJp::Utils.gem_dir, 'lib', 'tasks', '*.rake')].each do |f|
1
+ Dir[File.join(File.dirname(File.dirname(__FILE__)), 'tasks/*.rake')].each do |f|
4
2
  load f
5
3
  end
data/lib/tax_jp/utils.rb CHANGED
@@ -12,9 +12,9 @@ module TaxJp
12
12
  YAML.load_file(File.join(gem_dir, 'data', filename))
13
13
  end
14
14
 
15
- def render(template)
16
- src = File.join(gem_dir, 'templates', template)
17
- dest = File.join(gem_dir, template[0..-5])
15
+ def render(filename)
16
+ src = File.join(gem_dir, 'templates', filename + '.erb')
17
+ dest = File.join(gem_dir, filename)
18
18
  FileUtils.mkdir_p(File.dirname(dest))
19
19
  File.write(dest, ERB.new(File.read(src), 0, '-').result)
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module TaxJp
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tax_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichylinux