altmetric_badger 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/altmetric_badger.rb +1 -1
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d9d1ab56412d2975c02203170f5b776d6bc5410
4
- data.tar.gz: e5641af3af85d0ffa3f5760d660c67c471a05c05
3
+ metadata.gz: 5cb9b547bcdce34204639f4d8f9687de10bf63e7
4
+ data.tar.gz: c3b484fdb50fa268942bb393def2340591f0a6b2
5
5
  SHA512:
6
- metadata.gz: e4a22eddfa3448b3a5cfcc05decee2aa90dd89d7e4f53444c26fe80292452627ce0381a4428425c571d96962bf41de09f410530d65f938390d8a34224d7f2cfe
7
- data.tar.gz: 09f99061ca3ebde114c2ff3b0d309df9bd44683b953817fa4041d22452056c85a02b11f4006f34d6827659726966ef7d39fb173e3ecf0c7d5852ea5a58954a60
6
+ metadata.gz: 39b0ccccd7efaf0009c68dee14dffbcac32dd838fd8c3162a3192f685d944137fc6ce274e7134097da10462e168dd21e2c3758672cf0051c841bd560b5197f67
7
+ data.tar.gz: 2e137ac2e733d7cc00ca3e97762a70d7aa9b926d8fe743d1790b6413a55f02faa9c4a0b58eb74c6faeb71cce50db4b42c2d165a4951d5d838417ed7e68d03044
@@ -66,7 +66,7 @@ class AltmetricBadger
66
66
  def type_string
67
67
  return DEFAULT_TYPE_STRING unless total_posts > 0
68
68
 
69
- segments_to_string(
69
+ @type_string ||= segments_to_string(
70
70
  apportion_segments(
71
71
  post_percentages.keys.last(SEGMENT_COUNT)
72
72
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: altmetric_badger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew MacLeod
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: color
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '10.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '10.3'
55
55
  description: A gem which produces Altmetric badge URIs from a data hash
56
56
  email: matt@umm.io
57
57
  executables: []