b_ber_reader 0.0.1 → 0.0.2

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: 88717a4138cf65892efeef4ed70322896576b29d
4
- data.tar.gz: 95187a35b41b55e813015455c9f93fac51c2e40c
3
+ metadata.gz: 4613965a5d7a3e93f15ef35b147f2ae3a7e9f38c
4
+ data.tar.gz: eadba7c7afbfa567db84de5e404dd532a64b4973
5
5
  SHA512:
6
- metadata.gz: 1bd10f6bf7ff96b8dadb16967354acc2e56d3b6da6652854d614611f3de28db7811a308d5ae23aeef35d4110822b5d5b058a995588ceb425af0457f372924f08
7
- data.tar.gz: 062e8884d4f1ea44aeca482a0c13fa5a4c9e6d31b5e15f6b57d6ab77557e88c4d198bcee4358d95835316465d67acd7cffeea06323764f43f278ce7068347d90
6
+ metadata.gz: 8f33317c5e63901b5142f7e8d03c7f1bd5241437d0d5116191305b3dfccf1e0cb75a88c658164afaf2502c97e1262691942ff029e637fb3f441ede7ea68fb788
7
+ data.tar.gz: 42c28afe2ca67f078fe6ecde2dc9f613b6ea8620df305feddfe5d59beffbc1ac3c76bb93651dbd2d3dbc86d373159666f0e539ed4c04a20d1d599d02da303d45
data/Rakefile CHANGED
@@ -24,3 +24,23 @@ task :update do
24
24
  FileUtils.cp("#{reader_dir}/#{filename}", "#{assets_dir}/fonts/#{filename}")
25
25
  end
26
26
  end
27
+
28
+ task :bump do
29
+ spec_file = './b_ber_reader.gemspec'
30
+
31
+ spec = File.read spec_file
32
+ vers = spec.scan /gem.version = '(.[^']+)'/
33
+ vers = vers[0][0].split('.')
34
+ last = vers.last.to_i
35
+ last += 1
36
+
37
+ vers[2] = last.to_s
38
+ vers = vers.join('.')
39
+
40
+ spec_ = spec.gsub /gem.version = '(.[^']+)'/, "gem.version = '#{vers}'"
41
+ File.write spec_file, spec_
42
+
43
+ puts `git add . && git commit -m v#{vers}`
44
+ puts `git tag -a v#{vers} -m v#{vers}`
45
+
46
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'b_ber_reader'
3
- gem.version = '0.0.1'
3
+ gem.version = '0.0.2'
4
4
  gem.licenses = ['MIT']
5
5
 
6
6
  gem.summary = "Load dynamic content in a React view"
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
 
9
9
  gem.authors = ['Maxwell Simmer']
10
10
  gem.email = 'maxwell.simmer@gmail.com'
11
- gem.homepage = 'http://github.com/triplecanopy/b-ber/'
11
+ gem.homepage = 'https://github.com/triplecanopy/b_ber_reader'
12
12
 
13
13
  gem.add_dependency('non-stupid-digest-assets', '~> 1.0')
14
14
 
@@ -1,4 +1,5 @@
1
1
  require 'non-stupid-digest-assets'
2
+ require 'b_ber_reader/engine'
2
3
 
3
4
  module BberReader
4
5
  class << self
@@ -31,5 +32,15 @@ module BberReader
31
32
  stylesheet
32
33
  end
33
34
 
35
+ def fonts
36
+ fonts = []
37
+ fonts_dir = File.expand_path('../../app/assets/fonts', __FILE__)
38
+ Dir.glob("#{fonts_dir}/*.{ttf,eot,woff,woff2}") do |f|
39
+ fonts << File.basename(f)
40
+ end
41
+
42
+ fonts
43
+ end
44
+
34
45
  end
35
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: b_ber_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxwell Simmer
@@ -50,7 +50,7 @@ files:
50
50
  - lib/generators/templates/b_ber_reader.rb
51
51
  - package-lock.json
52
52
  - package.json
53
- homepage: http://github.com/triplecanopy/b-ber/
53
+ homepage: https://github.com/triplecanopy/b_ber_reader
54
54
  licenses:
55
55
  - MIT
56
56
  metadata: {}