pry-send_tweet.rb 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: c578f34e335ebbefdebc48fd2c8455bb01e5254e9f2b885e8247c68cb790c97f
4
- data.tar.gz: 5cc2b991ef40b6cde0355de9d703732ca635b7275bb93ab15c2fb6717fe222aa
3
+ metadata.gz: cdc6280e6a9956b05d10cf4d7385dd9c0591cdb91e44d7f1bce816f59571edf9
4
+ data.tar.gz: 4ec587b59b3f4e8c6747d1bdde326bfa07d82b17c5b1418fa12f4f75c50fc0bb
5
5
  SHA512:
6
- metadata.gz: b45804086d9a4920edcc32ef1c1a043a044f58770cf910907795c95010c71fc4931a26b9da7d3d566f0ed4eb222208bf93f0525f1397ac6e2a606c9e25c7ca68
7
- data.tar.gz: d409b2daccb1492dbab618b1577e92192e899c2e12021c2334ab1c7605a715cbe745093387ea1390f7bcef5b9a863f22f5e1231912ce59cdc50e2d0ea2ea05b0
6
+ metadata.gz: '08f21aa24c77b37aee6973d29df1acb51e7f985ba12fff70d0d5e126d7e90ad2e6e68baf480922726a0116a222483d57ae186634049e04a7826bad50b1317159'
7
+ data.tar.gz: 45cfe3ffc4067e9d3a2f22ddaac6b88b3f3a9b38b2f18cd42f9c81c345d723f121480f31bf9694d8a1460c01960c792a635b5a28f85e70ac1e4b280f96ac5fdc
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # CHANGELOG
2
+
3
+ ## v0.2.1
4
+
5
+ * Don't escape tweet content using 'Shellwords'.
@@ -2,7 +2,7 @@ require 'pry' if not defined?(Pry::ClassCommand)
2
2
  Pry.commands.add_command Class.new(Pry::ClassCommand) {
3
3
  require 'twitter'
4
4
  match 'send-tweet'
5
- command_options argument_required: true
5
+ command_options argument_required: true, shellwords: false
6
6
  banner <<-BANNER
7
7
  send-tweet [tweet]
8
8
 
@@ -10,17 +10,17 @@ Pry.commands.add_command Class.new(Pry::ClassCommand) {
10
10
  BANNER
11
11
 
12
12
  def process(*args)
13
- tweet = client.update args.join(' ')
14
- _pry_.output.puts tweet.url
15
- end
16
-
17
- def client
18
13
  if _pry_.config.twitter == nil
19
14
  raise Pry::CommandError, "_pry_.config.twitter is nil!\n" \
20
15
  "Please set the required keys and tokens to send " \
21
16
  "tweets using Twitters API. \n" \
22
17
  "Visit https://github.com/r-obert/pry-send_tweet.rb#readme to learn how."
23
18
  end
19
+ tweet = client.update args.join(' ')
20
+ _pry_.output.puts tweet.url
21
+ end
22
+
23
+ def client
24
24
  @client ||= begin
25
25
  Twitter::REST::Client.new {|config|
26
26
  config.consumer_key = _pry_.config.twitter.consumer_key
@@ -30,4 +30,4 @@ Pry.commands.add_command Class.new(Pry::ClassCommand) {
30
30
  }
31
31
  end
32
32
  end
33
- }
33
+ }
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "pry-send_tweet.rb"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Robert Gleeson"]
5
5
  spec.email = "trebor.g@protonmail.com"
6
6
  spec.summary = "pry-send_tweet.rb adds a Pry command that can send tweets using your personal twitter account."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-send_tweet.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-17 00:00:00.000000000 Z
11
+ date: 2018-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -45,6 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - CHANGELOG.md
48
49
  - LICENSE.txt
49
50
  - README.md
50
51
  - lib/pry-send_tweet.rb