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 +4 -4
- data/Rakefile +20 -0
- data/b_ber_reader.gemspec +2 -2
- data/lib/b_ber_reader.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4613965a5d7a3e93f15ef35b147f2ae3a7e9f38c
|
4
|
+
data.tar.gz: eadba7c7afbfa567db84de5e404dd532a64b4973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/b_ber_reader.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'b_ber_reader'
|
3
|
-
gem.version = '0.0.
|
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 = '
|
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
|
|
data/lib/b_ber_reader.rb
CHANGED
@@ -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.
|
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:
|
53
|
+
homepage: https://github.com/triplecanopy/b_ber_reader
|
54
54
|
licenses:
|
55
55
|
- MIT
|
56
56
|
metadata: {}
|