marvel_explorer 0.2.3 → 0.2.4

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: bb2597afd80f7ea6d61f48dc63f7ba631eea49a3
4
- data.tar.gz: f3333537a178efc2850ba6c02a132f9fc012dfed
3
+ metadata.gz: bcf44231762ebc7dac853767f91d107312d714a3
4
+ data.tar.gz: 7351d6d08c7473c60bc90cc177b52a004dbbb1cc
5
5
  SHA512:
6
- metadata.gz: ba33f5a88db1376b1070317a62b7ca2c88da438ebff4e2218d85f1fc3d323d8cc34da75693f695d5129990d72ebc54f78ec423d2b71279d85735a21a4463cf69
7
- data.tar.gz: 0ed72425a26ad9711ca9c3f31802179a79d112700b6a58558afc9344081c654c7d3da943e65d51ba02e74b750a7eb53ee01d427d6de8ad9d32322581d52d834d
6
+ metadata.gz: 34cd091db740f29423f7d502daacc7b06df994d31d3e7a8c639d695ff7b7f15da0262cf54bdc7492180c295fa92910e10ac2e169bff1c278b301a88eff7f18e0
7
+ data.tar.gz: 625eef4ef6b866954d401fd7bdf29bf4a12568a345ab292926a2f20bf5b53369fb7e860639e567246458f021ba5abd2313b059ed3a479b0c26a5170a18b6ebb9
data/config/defaults.yml CHANGED
@@ -1,2 +1,3 @@
1
1
  default_id: 1009351 # Hulk
2
2
  tweet_length: 140
3
+ marvelexplorer_url: http://marvelexplorer.github.io
@@ -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
@@ -1,3 +1,3 @@
1
1
  module MarvelExplorer
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
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.3
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: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ultron