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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4887bcdeae96ce84899aa3ebaf4da316c0113b43
4
- data.tar.gz: abfa9e72b28407bc4fbf358638a6f799b63be5ab
3
+ metadata.gz: 6c3974cd846c9b26af367aec52498049a9326d03
4
+ data.tar.gz: 3e63bb49c897f55c2af9c0efe74e128f52c1b59e
5
5
  SHA512:
6
- metadata.gz: 06e1c4314efd90a6ad3085ee89b229596922ebe3da3181ed018bdd419721ac82f3c693694493b10e4ff68c374e7647f5dc2b9ca6f9833d61f1f2c88fe98c164f
7
- data.tar.gz: 8faf6206ac2a723787faea00a91c043d18f38946b475f31c0aa85a7be96c38b3fef1df7ed7c8ee1db1dd52eb777c6a2687e30a5e2a8febc7acddedd5684b1eaf
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
@@ -1,3 +1,8 @@
1
+ # 1.0.6
2
+
3
+ - Fixed a bug where post_max_chars was displayed instead of message_max_chars
4
+ - Show raw JSON in messages even if no data
5
+
1
6
  # 1.0.5
2
7
 
3
8
  - Fixed the colorization for mentions
data/Gemfile CHANGED
@@ -3,7 +3,9 @@ source 'https://rubygems.org'
3
3
  group :test do
4
4
  gem 'rake'
5
5
  gem 'rspec'
6
- gem 'fakefs'
6
+ #gem 'fakefs'
7
+ gem 'guard-rspec', require: false
8
+ gem 'coveralls', require: false
7
9
  end
8
10
 
9
11
  platforms :mswin, :mingw do
data/Guardfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
-
3
+ #guard init rspec
4
4
  guard :rspec do
5
5
  watch(%r{^spec/.+_spec\.rb$})
6
6
  watch(%r{^lib/ayadn/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
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 "fakefs", ">= 0.5"
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.post
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.yourpost
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
@@ -139,6 +139,9 @@ module Ayadn
139
139
  def self.yourpost
140
140
  "\nYour post:\n\n".color(:cyan)
141
141
  end
142
+ def self.yourmessage
143
+ "\nYour message:\n\n".color(:cyan)
144
+ end
142
145
  def self.replying_to(post_id)
143
146
  "\nReplying to post #{post_id}...\n".color(:green)
144
147
  end
data/lib/ayadn/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
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
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'helpers'
3
3
  require 'json'
4
- require 'io/console'
4
+ #require 'io/console'
5
5
 
6
6
  describe Ayadn::Post do
7
7
  before do
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'helpers'
3
3
  require 'json'
4
- require 'io/console'
4
+ #require 'io/console'
5
5
 
6
6
  describe Ayadn::View do
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'helpers'
3
3
  require 'json'
4
- require 'io/console'
4
+ #require 'io/console'
5
5
 
6
6
  describe Ayadn::Workers do
7
7
 
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.5
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-07 00:00:00.000000000 Z
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: fakefs
168
+ name: coveralls
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '0.5'
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.5'
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"