ayadn 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDhmOTUxZGRlODIzNTkzOTk4MzliZDliMTM5NWIyM2JjNzRiMzEwYQ==
4
+ ZjEzMjMxMWZhMzUzOTc5OTFhZmFjYzBjNzQyYzk4NTI1YzUzNTBlYw==
5
5
  data.tar.gz: !binary |-
6
- ZTJkYjRjN2UxYjBiNDBmYjQ5NDExOTVlMGNjODY0NTQ0OGYzNDY5Ng==
6
+ ZjE3MmRhZWU4MGE5MTZjMTMxNzM0MjkwYzY1NzZmMTQ1NWNiZjdmNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjdkMGRmZWFiNzNjNjgwZmQ1M2ZmMjM5ZTQ5ZWI3Yzc4ZTc4MzI2MjU4MmQx
10
- NzMwNTAzZjVlZmVhMDAxYjVhMjQ4ZmViZWY4Nzg5ZDVmMmQwZTQ5NTc4OWI5
11
- YTZmMGVmMDAzMjUxYzZiNzUwNTI4YWQzYjhhODU3NDc1ODkwMDQ=
9
+ YTdjMzgyMTFiNDlhYTM0MTA3M2FhYTViYjc1NTEzNjE5YTMyNzMxZTM1ZTZj
10
+ ZGZmMmMzMTAwMDM5NDk1YmJhNTM0ZTE4OTgwY2U0NzA5Mzc4OGU4ZGU1ZTA0
11
+ N2U4NzRlZmIwNDY1NDk4Njg2N2RkNTcxN2ZmZDc1OTkwNGE0MWE=
12
12
  data.tar.gz: !binary |-
13
- MjZmNjhhNDI2YTc5NjNiNzcyMmQ4NDdhNWZhYzI5NjgzZTZmMWJkMzk4NjI1
14
- MjMzZWU5YTNiODc0MzhiNDY1ZGE2YjRkNjYxYzliOTA2MmQ0MDBmMzZhMjI2
15
- ZWIxOWE2YzY3NzYxN2FkYWQ3NjNjOTFmZjc2MjVmNzJkZDc5NTQ=
13
+ NDI4NThiMDA0OTAyMjhlODBiYjA5YjVkZjI0ZGQwNGVhNzcwYmFkMGQ4NTA1
14
+ M2Y4MWVlMWE0YmE3ODRiYjMxNDZjNTY4NTNlZjBkZTRmYTBhYTNlYmY0ZjFm
15
+ NTY5ZWNjNWQ4Mzk4MzhkY2NhM2RjZDNiMzI3Nzk4MjJmNzM5Mzg=
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  AYADN
2
2
  =====
3
3
 
4
+ ## 2014-02-16 v0.6.2
5
+ - config is fixed
6
+
4
7
  ## 2014-02-14 v0.6.0
5
8
  - ayadn is a Gem
6
9
  - config + multi-account is broken, next version will fix it
data/README.md CHANGED
@@ -117,9 +117,9 @@ ayadn write 'Posting to App.net with Ruby!'
117
117
 
118
118
  Ayadn is currently in a transition process from beta to v1.
119
119
 
120
- This beta version is now a Gem but lacks two features that worked before: multi account, and configuration without manually editing the config.yml file.
120
+ This beta version is now a Gem. It's identical to the previous Ayadn, except it lacks multi accounting.
121
121
 
122
- The current [na](https://github.com/ericdke/na) repository will become Ayadn v1 when ready and complete (multi account, configuration with ayadn commands, fresh clean code, OSS rules compliant, etc).
122
+ The current [na](https://github.com/ericdke/na) repository will become Ayadn v1 when ready and complete (multi account, configuration with ayadn commands, fresh clean code, OSS rules compliant, new layout, new features, new options, etc).
123
123
 
124
124
  ## INSTALL
125
125
 
@@ -127,7 +127,7 @@ The current [na](https://github.com/ericdke/na) repository will become Ayadn v1
127
127
 
128
128
  Ayadn is also compatible with Windows (install Ruby with Rubygems at [http://rubyinstaller.org](http://rubyinstaller.org)).
129
129
 
130
- Just run gem install:
130
+ Run gem install:
131
131
 
132
132
  ```
133
133
  gem install ayadn
@@ -147,17 +147,23 @@ If you provide the `write` command without text, you will enter the compose mess
147
147
 
148
148
  By default, Ayadn displays only the new posts in the stream since your last visit.
149
149
 
150
+ **I strongly recommend you run this command after install:**
151
+
152
+ `ayadn install config`
153
+
154
+ **so that you can customize the `config.yml` file that will be created in this location.**
155
+
150
156
  ## LIST OF COMMANDS
151
157
 
152
- *Only the first lines include the `[PRESS ENTER KEY]` indication and a description for obvious readability reasons.*
158
+ *Only the first lines include the `[PRESS ENTER KEY]` reminder for obvious readability reasons.*
153
159
 
154
160
  ```
155
- ayadn [PRESS ENTER KEY] *to display the unified stream*
156
- ayadn scroll [PRESS ENTER KEY] *to scroll the unified stream*
157
- ayadn write [PRESS ENTER KEY] *to write your post*
158
- ayadn write '@ericd Good morning Eric!' [PRESS ENTER KEY] *(prefer the previous method, safer)*
159
- ayadn reply 18527205 [PRESS ENTER KEY] *to reply, then write your post*
160
- ayadn pm @ericd [PRESS ENTER KEY] *to send a private message to @ericd*
161
+ ayadn [PRESS ENTER KEY]
162
+ ayadn scroll [PRESS ENTER KEY]
163
+ ayadn write [PRESS ENTER KEY]
164
+ ayadn write '@ericd Good morning Eric!' [PRESS ENTER KEY]
165
+ ayadn reply 18527205 [PRESS ENTER KEY]
166
+ ayadn pm @ericd [PRESS ENTER KEY]
161
167
  ayadn global
162
168
  ayadn scroll global
163
169
  ayadn checkins
File without changes
data/lib/ayadn/help.rb CHANGED
@@ -142,6 +142,7 @@ class AyaDN
142
142
  commands << "ayadn commands\n"
143
143
  commands << "ayadn webhelp\n"
144
144
  commands << "ayadn random\n"
145
+ commands << "ayadn install config\n"
145
146
  commands << "\n"
146
147
  return commands
147
148
  end
data/lib/ayadn/tools.rb CHANGED
@@ -29,8 +29,8 @@ class AyaDN
29
29
  def loadConfig
30
30
  if File.exists?(@installed_config_path)
31
31
  YAML::load_file(@installed_config_path)
32
- elsif File.exists?('./config.yml')
33
- YAML::load_file('./config.yml')
32
+ elsif File.exists?(File.expand_path(File.dirname(__FILE__)) + '/config.yml')
33
+ YAML::load_file(File.expand_path(File.dirname(__FILE__)) + '/config.yml')
34
34
  else
35
35
  {
36
36
  "counts" => {
@@ -75,9 +75,9 @@ class AyaDN
75
75
  if File.exists?(@installed_config_path)
76
76
  File.open(@installed_config_path, 'w') {|f| f.write config.to_yaml }
77
77
  puts "\nDone!\n\n".green
78
- else
79
- File.open('./config.yml', 'w') {|f| f.write config.to_yaml }
80
- puts "\nDone!\n\n".green
78
+ # else
79
+ # File.open(File.expand_path(File.dirname(__FILE__)) + '/config.yml', 'w') {|f| f.write config.to_yaml }
80
+ # puts "\nDone!\n\n".green
81
81
  end
82
82
  end
83
83
  def installConfig
@@ -93,7 +93,7 @@ class AyaDN
93
93
  end
94
94
  end
95
95
  def copyConfigFromMaster
96
- FileUtils.cp('./config.yml', @installed_config_path)
96
+ FileUtils.cp(File.expand_path(File.dirname(__FILE__)) + '/config.yml', @installed_config_path)
97
97
  puts "\nDone.\n\n".green
98
98
  end
99
99
  def config
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: 0.6.1
4
+ version: 0.6.2
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-14 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -56,13 +56,13 @@ files:
56
56
  - LICENSE.md
57
57
  - README.md
58
58
  - bin/ayadn
59
- - config.yml
60
59
  - lib/ayadn.rb
61
60
  - lib/ayadn/adn_files.rb
62
61
  - lib/ayadn/api.rb
63
62
  - lib/ayadn/authorize.rb
64
63
  - lib/ayadn/client-http.rb
65
64
  - lib/ayadn/colors.rb
65
+ - lib/ayadn/config.yml
66
66
  - lib/ayadn/debug.rb
67
67
  - lib/ayadn/endpoints.rb
68
68
  - lib/ayadn/extend.rb