marvel_explorer 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/defaults.yml +1 -0
- data/lib/marvel_explorer/twitter.rb +3 -2
- data/lib/marvel_explorer/version.rb +1 -1
- data/spec/tweet_spec.rb +1 -1
- 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: bcf44231762ebc7dac853767f91d107312d714a3
|
|
4
|
+
data.tar.gz: 7351d6d08c7473c60bc90cc177b52a004dbbb1cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34cd091db740f29423f7d502daacc7b06df994d31d3e7a8c639d695ff7b7f15da0262cf54bdc7492180c295fa92910e10ac2e169bff1c278b301a88eff7f18e0
|
|
7
|
+
data.tar.gz: 625eef4ef6b866954d401fd7bdf29bf4a12568a345ab292926a2f20bf5b53369fb7e860639e567246458f021ba5abd2313b059ed3a479b0c26a5170a18b6ebb9
|
data/config/defaults.yml
CHANGED
|
@@ -11,12 +11,13 @@ module MarvelExplorer
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def tweet_message
|
|
14
|
-
tm = 'In %s, %s appeared in %s #%s with %s' % [
|
|
14
|
+
tm = 'In %s, %s appeared in %s #%s with %s %s' % [
|
|
15
15
|
yamls['comic']['year'],
|
|
16
16
|
yamls['start']['name'],
|
|
17
17
|
yamls['comic']['series']['name'],
|
|
18
18
|
yamls['comic']['issue'],
|
|
19
|
-
yamls['end']['name']
|
|
19
|
+
yamls['end']['name'],
|
|
20
|
+
@config['marvelexplorer_url']
|
|
20
21
|
]
|
|
21
22
|
|
|
22
23
|
if tm.length > @config['tweet_length'].to_i
|
data/spec/tweet_spec.rb
CHANGED
|
@@ -18,7 +18,7 @@ module MarvelExplorer
|
|
|
18
18
|
.to_return(status: 200, body: File.read('spec/fixtures/hulk_comics.json'))
|
|
19
19
|
stub_request(:get, /gateway.marvel.com\/v1\/public\/comics\/19843\/characters/)
|
|
20
20
|
.to_return(status: 200, body: File.read('spec/fixtures/double-shot-characters.json'))
|
|
21
|
-
expect(@me.tweet_message).to eq 'In 2003, Hulk appeared in Marvel Double Shot #2 with Avengers'
|
|
21
|
+
expect(@me.tweet_message).to eq 'In 2003, Hulk appeared in Marvel Double Shot #2 with Avengers http://marvelexplorer.github.io'
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: marvel_explorer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pikesley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ultron
|