ayadn 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjEzMjMxMWZhMzUzOTc5OTFhZmFjYzBjNzQyYzk4NTI1YzUzNTBlYw==
5
- data.tar.gz: !binary |-
6
- ZjE3MmRhZWU4MGE5MTZjMTMxNzM0MjkwYzY1NzZmMTQ1NWNiZjdmNg==
2
+ SHA1:
3
+ metadata.gz: 0ffee89e4c905c6802578918af74257eac1e70a6
4
+ data.tar.gz: 5d476acb782fee7cb9af92f954ebba153ef5a96a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YTdjMzgyMTFiNDlhYTM0MTA3M2FhYTViYjc1NTEzNjE5YTMyNzMxZTM1ZTZj
10
- ZGZmMmMzMTAwMDM5NDk1YmJhNTM0ZTE4OTgwY2U0NzA5Mzc4OGU4ZGU1ZTA0
11
- N2U4NzRlZmIwNDY1NDk4Njg2N2RkNTcxN2ZmZDc1OTkwNGE0MWE=
12
- data.tar.gz: !binary |-
13
- NDI4NThiMDA0OTAyMjhlODBiYjA5YjVkZjI0ZGQwNGVhNzcwYmFkMGQ4NTA1
14
- M2Y4MWVlMWE0YmE3ODRiYjMxNDZjNTY4NTNlZjBkZTRmYTBhYTNlYmY0ZjFm
15
- NTY5ZWNjNWQ4Mzk4MzhkY2NhM2RjZDNiMzI3Nzk4MjJmNzM5Mzg=
6
+ metadata.gz: e5902612af2fe1c7350b2fec511cbfea37bba7d80a4536aaa6363a6d0e4b33b4182132abe2a7028e634d03ff435cb00f2a788e73a2166f024ffc16b70f63e703
7
+ data.tar.gz: 2a6aa433fd32cfeacc14c4ae5b0337fbd3aea83dacf3fb1f94b37078a0e28c700cf7a8ee0947f69d1c3ee57799a3076dae3334747e49325a7632fb86acebaa44
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
1
  AYADN
2
2
  =====
3
3
 
4
- ## 2014-02-16 v0.6.2
5
- - config is fixed
4
+ ## 0.6.3
5
+ - better platform detection in nowplaying
6
+ - fixed error if arg is nil in alias-channel
7
+ - better help screen
8
+ - autostart browser only in OSX
9
+ - fixed channels folder
10
+ - fixed save to pinboard without tag
11
+
12
+ ## 2014-02-15 v0.6.2
13
+ - fixed config
6
14
 
7
15
  ## 2014-02-14 v0.6.0
8
16
  - ayadn is a Gem
data/CONTRIBUTORS.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Contributors
2
2
  Contributors are identified by name and ADN handle.
3
3
 
4
- - Eric Dejonckheere (@ericd)
5
- - Jeremy W. Sherman (@jws)
4
+ - Code: Eric Dejonckheere (@ericd)
5
+ - Gem: Jeremy W. Sherman (@jws)
data/README.md CHANGED
@@ -151,7 +151,7 @@ By default, Ayadn displays only the new posts in the stream since your last visi
151
151
 
152
152
  `ayadn install config`
153
153
 
154
- **so that you can customize the `config.yml` file that will be created in this location.**
154
+ **so that you can customize the `~/ayadn/data/config.yml` file this command will create.**
155
155
 
156
156
  ## LIST OF COMMANDS
157
157
 
data/bin/ayadn CHANGED
@@ -205,10 +205,12 @@ when "commands", "usage"
205
205
 
206
206
  when "webhelp"
207
207
  puts $tools.helpScreen
208
- begin
209
- $tools.startBrowser("https://github.com/ericdke/ayadn#ayadn")
210
- rescue
211
- puts "\nFailed to start a browser automatically. Please visit ".cyan + "https://github.com/ericdke/ayadn#ayadn".magenta
208
+ begin
209
+ if $tools.ayadn_configuration[:platform] =~ /darwin/
210
+ $tools.startBrowser("https://github.com/ericdke/ayadn#ayadn")
211
+ else
212
+ puts "\nCan't start a browser automatically. Please visit ".cyan + "https://github.com/ericdke/ayadn#ayadn".magenta
213
+ end
212
214
  end
213
215
 
214
216
  when "options"
data/lib/ayadn/help.rb CHANGED
@@ -33,20 +33,22 @@ class AyaDN
33
33
  #help << "- " + "help ".green + "\t\t\tdisplay this screen\n"
34
34
  help << "- " + "help/commands/webhelp".green + "\n\n"
35
35
  #help << "- " + "tip: ".cyan + "some commands have a shortcut: w(rite), r(eply), s(earch), p(osts), m(entions), t(ag), c(onvo), i(nfos), h(elp)\n"
36
- help << "- " + "Tip: put 'scroll' before a stream to use the scrolling feature\n\n".cyan
36
+ help << "- " + "Tip: put 'scroll' before a stream to use the scrolling feature\n".cyan
37
+ help << "- " + "Visit https://github.com/ericdke/ayadn#ayadn for help, tips, commands, etc\n\n".cyan
37
38
  help << "Examples:\n\n".cyan
38
39
  help << "ayadn \n"#.green + "(display your Unified stream)\n"
40
+ help << "ayadn install config\n"#.green + "(display your Unified stream)\n"
39
41
  help << "ayadn write \n"#.green + "(write a post with a compose window)\n"
40
42
  help << "ayadn write \'@ayadn Posting with AyaDN!\' \n"#.green + "(write a post instantly between double quotes)\n"
41
43
  help << "ayadn reply 14805036 \n"#.green + "(reply to post n°14805036 with a compose window)\n"
42
- help << "ayadn tag nowplaying \n"#.green + "(search for hashtag #nowplaying)\n"
44
+ #help << "ayadn tag nowplaying \n"#.green + "(search for hashtag #nowplaying)\n"
43
45
  help << "ayadn star 14805036 \n"#.green + "(star post n°14805036)\n"
44
46
  help << "ayadn checkins \n"#.green + "(display the Checkins stream)\n"
45
47
  help << "ayadn scroll unified \n"
46
48
  help << "ayadn follow @ayadn \n"#.green + "(follow user @ericd)\n"
47
49
  help << "ayadn search ruby,json \n"#.green + "(search for posts with these words)\n"
48
50
  #help << "ayadn list files \n"
49
- help << "ayadn backup followings me \n"
51
+ #help << "ayadn backup followings me \n"
50
52
  help << "\n"
51
53
  return help
52
54
  end
data/lib/ayadn/main.rb CHANGED
@@ -429,10 +429,19 @@ class AyaDN
429
429
  end
430
430
  def ayadn_alias_channel(channel_id, channel_alias)
431
431
  puts "\nAdding new alias: ".cyan + "#{channel_id} ".brown + "=> " + "#{channel_alias}\n".green
432
- if channel_id.is_integer? && channel_alias != nil
433
- $files.save_channel_alias(channel_id, channel_alias)
432
+ unless channel_id.nil? || channel_alias.nil?
433
+ if channel_id.is_integer?
434
+ $files.save_channel_alias(channel_id, channel_alias)
435
+ else
436
+ puts $status.errorSyntax
437
+ puts "List of saved aliases: \n".cyan
438
+ puts ayadn_list_aliases
439
+ exit
440
+ end
434
441
  else
435
442
  puts $status.errorSyntax
443
+ puts "List of saved aliases: \n".cyan
444
+ puts ayadn_list_aliases
436
445
  exit
437
446
  end
438
447
  puts "List of saved aliases: \n".cyan
@@ -440,8 +449,7 @@ class AyaDN
440
449
  puts "Done!\n\n".green
441
450
  end
442
451
  def ayadn_nowplaying
443
- case $tools.ayadn_configuration[:platform]
444
- when $tools.winplatforms
452
+ unless $tools.ayadn_configuration[:platform] =~ /darwin/
445
453
  puts "\nThis feature only works with Mac OS X and iTunes. Sorry.\n\n".red
446
454
  exit
447
455
  end
data/lib/ayadn/tools.rb CHANGED
@@ -195,7 +195,11 @@ class AyaDN
195
195
  end
196
196
  end
197
197
  def saveToPinboard(post_id, pin_username, pin_password, link, tags, post_text, user_name)
198
- tags += ",ADN"
198
+ unless tags.nil?
199
+ tags += ",ADN"
200
+ else
201
+ tags = "ADN"
202
+ end
199
203
  post_text += " http://alpha.app.net/#{user_name}/post/#{post_id}"
200
204
  pinboard = Pinboard::Client.new(:username => pin_username, :password => pin_password)
201
205
  pinboard.add(:url => link, :tags => tags, :extended => post_text, :description => link)
@@ -3,6 +3,7 @@
3
3
  class AyaDN
4
4
  class View
5
5
  def build_pm_channels_infos
6
+ $files.makedir($tools.ayadn_configuration[:messages_path])
6
7
  #meta = @hash['meta']
7
8
  #unread_messages = meta['unread_counts']['net.app.core.pm']
8
9
  the_channels = ""
metadata CHANGED
@@ -1,50 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayadn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
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-02-16 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pinboard
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.1
33
+ version: '0.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.1
41
- description: ! 'AyaDN features all kinds of tools to access and manage your App.net
42
- account. It''s an ADN client (posts, streams, PM, channels, files, etc) and a toolbelt
43
- at the same time: it can save post links to Pinboard, post your currently-playing
44
- iTunes song, backup data associated with your ADN account such as followings, followers,
45
- muted users, and many other features.
46
-
47
- '
40
+ version: '0.1'
41
+ description: |
42
+ AyaDN features all kinds of tools to access and manage your App.net account. It's an ADN client (posts, streams, PM, channels, files, etc) and a toolbelt at the same time: it can save post links to Pinboard, post your currently-playing iTunes song, backup data associated with your ADN account such as followings, followers, muted users, and many other features.
48
43
  email: eric@aya.io
49
44
  executables:
50
45
  - ayadn
@@ -93,12 +88,12 @@ require_paths:
93
88
  - lib
94
89
  required_ruby_version: !ruby/object:Gem::Requirement
95
90
  requirements:
96
- - - ! '>='
91
+ - - ">="
97
92
  - !ruby/object:Gem::Version
98
93
  version: 1.9.3
99
94
  required_rubygems_version: !ruby/object:Gem::Requirement
100
95
  requirements:
101
- - - ! '>='
96
+ - - ">="
102
97
  - !ruby/object:Gem::Version
103
98
  version: '0'
104
99
  requirements: []