ayadn 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -1
- data/Guardfile +1 -1
- data/ayadn.gemspec +2 -1
- data/lib/ayadn/action.rb +6 -2
- data/lib/ayadn/status.rb +3 -0
- data/lib/ayadn/version.rb +1 -1
- data/spec/spec_helper.rb +4 -2
- data/spec/unit/post_spec.rb +1 -1
- data/spec/unit/view_spec.rb +1 -1
- data/spec/unit/workers_spec.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c3974cd846c9b26af367aec52498049a9326d03
|
4
|
+
data.tar.gz: 3e63bb49c897f55c2af9c0efe74e128f52c1b59e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d828449ca68759c40f478e1d386c16d5d408c649ea9b8439c465237fb0d928562827e08f160469811c25a0d9910d7c980fd9a9b37a1159e9a3b388e6f385b6d
|
7
|
+
data.tar.gz: a7a829860c54ef0cac6d2dda542ce4797fb69ff1948e2e8558885bae9fd6c6a0e69f455e3fc43ac6f6cc2632589ef8c5a1ab52b5eadbeb5690395d0f23dbc98c
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Guardfile
CHANGED
data/ayadn.gemspec
CHANGED
@@ -33,7 +33,8 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "rspec", ">= 2.14"
|
34
34
|
spec.add_development_dependency "rb-fsevent", ">= 0.9"
|
35
35
|
spec.add_development_dependency "guard-rspec", ">= 4.2"
|
36
|
-
spec.add_development_dependency "
|
36
|
+
spec.add_development_dependency "coveralls"
|
37
|
+
#spec.add_development_dependency "fakefs", ">= 0.5"
|
37
38
|
|
38
39
|
spec.post_install_message = "Thank you for installing Ayadn!"
|
39
40
|
end
|
data/lib/ayadn/action.rb
CHANGED
@@ -611,6 +611,10 @@ module Ayadn
|
|
611
611
|
resp = @api.get_messages(channel_id, options)
|
612
612
|
(no_new_posts unless Databases.has_new?(resp, "channel:#{channel_id}")) if options[:new]
|
613
613
|
Databases.save_max_id(resp)
|
614
|
+
if options[:raw]
|
615
|
+
@view.show_raw(resp)
|
616
|
+
exit
|
617
|
+
end
|
614
618
|
no_data('messages') if resp['data'].empty?
|
615
619
|
render_view(resp, options)
|
616
620
|
Scroll.new(@api, @view).messages(channel_id, options) if options[:scroll]
|
@@ -714,7 +718,7 @@ module Ayadn
|
|
714
718
|
begin
|
715
719
|
missing_username if username.empty?
|
716
720
|
messenger = Post.new
|
717
|
-
puts Status.
|
721
|
+
puts Status.message
|
718
722
|
lines_array = messenger.compose
|
719
723
|
messenger.check_message_length(lines_array)
|
720
724
|
@view.clear_screen
|
@@ -722,7 +726,7 @@ module Ayadn
|
|
722
726
|
resp = messenger.send_pm(username, lines_array.join("\n"))
|
723
727
|
FileOps.save_message(resp) if Settings.options[:backup][:auto_save_sent_messages]
|
724
728
|
@view.clear_screen
|
725
|
-
puts Status.
|
729
|
+
puts Status.yourmessage
|
726
730
|
@view.show_posted(resp)
|
727
731
|
rescue => e
|
728
732
|
Errors.global_error("action/pmess", username, e)
|
data/lib/ayadn/status.rb
CHANGED
data/lib/ayadn/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
1
3
|
require 'ayadn'
|
2
|
-
require 'fakefs/spec_helpers'
|
4
|
+
#require 'fakefs/spec_helpers'
|
3
5
|
|
4
6
|
RSpec.configure do |config|
|
5
7
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
@@ -10,5 +12,5 @@ RSpec.configure do |config|
|
|
10
12
|
# the seed, which is printed after each run.
|
11
13
|
# --seed 1234
|
12
14
|
config.order = 'random'
|
13
|
-
config.include FakeFS::SpecHelpers, fakefs: true
|
15
|
+
#config.include FakeFS::SpecHelpers, fakefs: true
|
14
16
|
end
|
data/spec/unit/post_spec.rb
CHANGED
data/spec/unit/view_spec.rb
CHANGED
data/spec/unit/workers_spec.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dejonckheere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -165,19 +165,19 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '4.2'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: coveralls
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0
|
173
|
+
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0
|
180
|
+
version: '0'
|
181
181
|
description: 'App.net command-line client: toolbox to access and manage your ADN data,
|
182
182
|
show your streams, post, manage conversations, star/follow/repost... and many, many
|
183
183
|
more.'
|
@@ -187,6 +187,7 @@ executables:
|
|
187
187
|
extensions: []
|
188
188
|
extra_rdoc_files: []
|
189
189
|
files:
|
190
|
+
- ".coveralls.yml"
|
190
191
|
- ".gitignore"
|
191
192
|
- ".rspec"
|
192
193
|
- ".travis.yml"
|