ayadn 2.0.9 → 2.0.10
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/CHANGELOG.md +4 -0
- data/doc/05-streams.md +8 -0
- data/doc/08-listings.md +56 -0
- data/lib/ayadn/api.rb +21 -1
- data/lib/ayadn/app.rb +14 -0
- data/lib/ayadn/cnx.rb +1 -19
- data/lib/ayadn/fileops.rb +14 -0
- data/lib/ayadn/status.rb +14 -0
- data/lib/ayadn/stream.rb +131 -19
- data/lib/ayadn/version.rb +1 -1
- data/spec/mock/ayadn.sqlite +0 -0
- data/spec/mock/fwr_@ayadn.json +2253 -324
- data/spec/unit/annotations_spec.rb +1 -1
- data/spec/unit/view_spec.rb +2 -2
- data/spec/unit/workers_spec.rb +3 -3
- metadata +3 -3
@@ -147,7 +147,7 @@ describe Ayadn::Annotations do
|
|
147
147
|
|
148
148
|
describe "#nowplaying" do
|
149
149
|
it "creates nowplaying annotations" do
|
150
|
-
ann = Ayadn::Annotations.new({
|
150
|
+
ann = Ayadn::Annotations.new({title: 'ibelieveicanfly', artist: 'big jim', artwork: 'http://ahah', link: 'http://ohoh', source: 'fake', width: 9000, height: 30000, artwork_thumb: 'http://hihi', width_thumb: 9, height_thumb: 3, options: {nowplaying: true}})
|
151
151
|
expect(ann.content).to eq [{"type"=>"com.ayadn.user", "value"=>{"+net.app.core.user"=>{"user_id"=>"@test", "format"=>"basic"}, "env"=>{"platform"=>'shoes', "ruby"=>"0", "locale"=>"gibberish"}}}, {"type"=>"com.ayadn.client", "value"=>{"url"=>"http://ayadn-app.net", "author"=>{"name"=>"Eric Dejonckheere", "username"=>"ericd", "id"=>"69904", "email"=>"eric@aya.io"}, "version"=>"wee"}}, {"type"=>"com.ayadn.nowplaying", "value"=>{"title"=>"ibelieveicanfly", "artist"=>"big jim", "artwork"=>"http://ahah", "link"=>"http://ohoh", "source"=>"fake"}}, {"type"=>"net.app.core.oembed", "value"=>{"version"=>"1.0", "type"=>"photo", "width"=>9000, "height"=>30000, "title"=>"ibelieveicanfly", "url"=>"http://ahah", "embeddable_url"=>"http://ahah", "provider_url"=>"https://itunes.apple.com", "provider_name"=>"iTunes", "thumbnail_url"=>"http://hihi", "thumbnail_width"=>9, "thumbnail_height"=>3}}]
|
152
152
|
end
|
153
153
|
end
|
data/spec/unit/view_spec.rb
CHANGED
@@ -76,7 +76,7 @@ describe Ayadn::View do
|
|
76
76
|
printed = capture_stdout do
|
77
77
|
Ayadn::View.new.show_list_reposted(list[0]['data'], 123456)
|
78
78
|
end
|
79
|
-
expect(printed).to include *['Joel Timmins', 'Donny Davis', '
|
79
|
+
expect(printed).to include *['Joel Timmins', 'Donny Davis', 'reposted post', '123456']
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -89,7 +89,7 @@ describe Ayadn::View do
|
|
89
89
|
printed = capture_stdout do
|
90
90
|
Ayadn::View.new.show_list_starred(list[0]['data'], 123456)
|
91
91
|
end
|
92
|
-
expect(printed).to include *['Joel Timmins', 'Donny Davis', '
|
92
|
+
expect(printed).to include *['Joel Timmins', 'Donny Davis', 'starred post', '123456']
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
data/spec/unit/workers_spec.rb
CHANGED
@@ -116,9 +116,9 @@ describe Ayadn::Workers do
|
|
116
116
|
describe "#extract_users" do
|
117
117
|
it "extracts users" do
|
118
118
|
usr = @workers.extract_users(users_list[0])
|
119
|
-
expect(usr["52985"]).to eq ["schmidt_fu", "Florian Schmidt",
|
120
|
-
expect(usr["185581"]).to eq ["aya_tests", "
|
121
|
-
expect(usr["69904"]).to eq ["ericd", "Eric Dejonckheere",
|
119
|
+
expect(usr["52985"]).to eq ["schmidt_fu", "Florian Schmidt", true, true, 11087]
|
120
|
+
expect(usr["185581"]).to eq ["aya_tests", "Big Jim", true, true, 1414]
|
121
|
+
expect(usr["69904"]).to eq ["ericd", "Eric Dejonckheere", nil, nil, 7030]
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ayadn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -350,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
350
350
|
version: '0'
|
351
351
|
requirements: []
|
352
352
|
rubyforge_project:
|
353
|
-
rubygems_version: 2.
|
353
|
+
rubygems_version: 2.4.5
|
354
354
|
signing_key:
|
355
355
|
specification_version: 4
|
356
356
|
summary: App.net command-line client.
|