tweetskim 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in tweetskim.gemspec
4
4
  gemspec
@@ -20,6 +20,8 @@ module Tweetskim
20
20
  def htmlize(tweet)
21
21
  text = text(tweet).gsub('\n', '<br/>')
22
22
  "<div class='tweet'><h1>#{tweet.user.name} <span class='time'>#{time(tweet)}</span></h1><p>#{text}<p></div>"
23
+ # TODO a ref for links
24
+ text = text.gsub(/http/, '**\1**')
23
25
  end
24
26
 
25
27
  def time(tweet)
@@ -10,12 +10,14 @@ module Tweetskim
10
10
  SETTINGS_FILE_PATH = File.expand_path "~/.tweetskim/default-account"
11
11
 
12
12
  require "fileutils"
13
-
13
+
14
14
  def initialize
15
15
  FileUtils.mkdir_p(File.expand_path("~/.tweetskim"))
16
16
  FileUtils.touch SETTINGS_FILE_PATH
17
17
  end
18
-
18
+
19
+ require "yaml"
20
+
19
21
  def load
20
22
  File.open SETTINGS_FILE_PATH, "r" do |filebody|
21
23
  YAML::load(filebody) || SETTINGS_TEMPLATE
@@ -28,7 +30,7 @@ module Tweetskim
28
30
  filebody.write yml_str
29
31
  end
30
32
  end
31
-
33
+
32
34
  def user_credentials_stored?
33
35
  if File.exists? SETTINGS_FILE_PATH
34
36
  settings = load
@@ -38,7 +40,7 @@ module Tweetskim
38
40
  false
39
41
  end
40
42
  end
41
-
43
+
42
44
  def save_credentials(token, secret)
43
45
  settings = load
44
46
  settings[:token] = token
@@ -61,7 +63,7 @@ module Tweetskim
61
63
  settings[:last_read_status_id] = id
62
64
  save settings
63
65
  end
64
-
66
+
65
67
  end
66
-
68
+
67
69
  end
@@ -1,3 +1,3 @@
1
1
  module Tweetskim
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,79 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tweetskim
3
- version: !ruby/object:Gem::Version
4
- version: 0.8.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 61
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 8
9
+ - 1
10
+ version: 0.8.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Thomas Kjeldahl Nilsson
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-06-17 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: twitter
16
- requirement: &9961660 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *9961660
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: oauth
27
- requirement: &9961240 !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :runtime
34
- prerelease: false
35
- version_requirements: *9961240
36
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
37
49
  name: OptionParser
38
- requirement: &9960820 !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
39
52
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
44
60
  type: :runtime
45
- prerelease: false
46
- version_requirements: *9960820
47
- - !ruby/object:Gem::Dependency
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
48
63
  name: launchy
49
- requirement: &9960400 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
55
74
  type: :runtime
56
- prerelease: false
57
- version_requirements: *9960400
58
- - !ruby/object:Gem::Dependency
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
59
77
  name: mocha
60
- requirement: &9959980 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
61
80
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
66
88
  type: :development
67
- prerelease: false
68
- version_requirements: *9959980
69
- description: ! 'Usage: tweetskim [options]'
70
- email:
89
+ version_requirements: *id005
90
+ description: "Usage: tweetskim [options]"
91
+ email:
71
92
  - thomas@kjeldahlnilsson.net
72
- executables:
93
+ executables:
73
94
  - tweetskim
74
95
  extensions: []
96
+
75
97
  extra_rdoc_files: []
76
- files:
98
+
99
+ files:
77
100
  - .gitignore
78
101
  - Gemfile
79
102
  - README.md
@@ -89,26 +112,36 @@ files:
89
112
  - tweetskim.gemspec
90
113
  homepage: https://github.com/thomanil/tweetskim
91
114
  licenses: []
115
+
92
116
  post_install_message:
93
117
  rdoc_options: []
94
- require_paths:
118
+
119
+ require_paths:
95
120
  - lib
96
- required_ruby_version: !ruby/object:Gem::Requirement
121
+ required_ruby_version: !ruby/object:Gem::Requirement
97
122
  none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
131
  none: false
104
- requirements:
105
- - - ! '>='
106
- - !ruby/object:Gem::Version
107
- version: '0'
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ hash: 3
136
+ segments:
137
+ - 0
138
+ version: "0"
108
139
  requirements: []
140
+
109
141
  rubyforge_project: tweetskim
110
- rubygems_version: 1.8.15
142
+ rubygems_version: 1.8.25
111
143
  signing_key:
112
144
  specification_version: 3
113
145
  summary: A stripped down CLI utility for reading tweets
114
146
  test_files: []
147
+