pry-send_tweet.rb 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7a99a90f60dd7d07e5b521cd2ef09920aaff72ce65130d94807aaf25ae33d61
4
- data.tar.gz: 5dd0ce3a096d264d434ba54f7bf93b1bc1343816040f9511edc4f473085711d6
3
+ metadata.gz: 48821186a98fa531bb7ff0b17b5319ea05be3a3e795fe6772cf3da1d0d16d791
4
+ data.tar.gz: 0e46b31aa1ef6d0007645bfd69906f72a419ffe9fe6345a25da0ff3b260954a2
5
5
  SHA512:
6
- metadata.gz: 2a23b1b28d2e34c67d74d4c1cc28f60244fcbd427ab0186ca9ea2a368605390604e1487913e64ceb653c56ab08947890dcde8f398151bd9057164fc09dc46ce5
7
- data.tar.gz: 48f360e3b9d92047efb4b7939a206ac5fc6a9e7d248550e788f794492c8a5ebd6dd464349db5085d179eff8fc01bf7202eb31e8e8a696b88c6114dd0ef4c54bf
6
+ metadata.gz: e9e9e13b0c4000958ec025a9e3c7a044e0fb37b2c8a0943160ac6b3c4de726de97cfa44e2db1981e3b1f91fc9d35b60c58f3119a04757a642eb7e1f33602625f
7
+ data.tar.gz: c417c56ccea6c5af1aa7d5f2288949e1e4309f6b24e3954d0b9fe7761fff027fad6f9a6c213c611e919f12c1c8521ab2b6a3ae83a1f2859e65315b49bfe70b99
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ Gemfile.lock
2
+ .pryrc
3
+ *.gem
4
+ .DS_Store
5
+ tmp/
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.5.2
4
+
5
+ * Fix a NoMethodError when following a user.
6
+
7
+ * Update gemspec to include all files checked into git.
8
+
3
9
  ## v0.5.1
4
10
 
5
11
  * Update an outdated description for the `read-tweets` command.
data/Dockerfile ADDED
@@ -0,0 +1,31 @@
1
+ FROM ruby:2.5.3-stretch
2
+
3
+ # Create working directory
4
+ RUN mkdir -p /app/
5
+ WORKDIR /app/
6
+
7
+ # Bundler
8
+ ADD Gemfile pry-send_tweet.gemspec /app/
9
+ RUN gem install bundler --no-rdoc --no-ri
10
+ RUN bundle install
11
+
12
+ # Install packages
13
+ RUN apt-get update
14
+ RUN apt-get install -y --no-install-recommends cowsay locales emacs24-nox less
15
+ RUN ln -s /usr/games/cowsay /usr/bin/cowsay
16
+
17
+ # Configure locale
18
+ RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
19
+ RUN locale-gen
20
+ RUN echo 'Europe/Zurich' > /etc/timezone
21
+ RUN rm /etc/localtime
22
+ RUN dpkg-reconfigure -f noninteractive tzdata
23
+
24
+ ENV LANG en_US.UTF-8
25
+ ENV LANGUAGE en_US:en
26
+ ENV LC_ALL en_US.UTF-8
27
+ ENV EDITOR emacs
28
+
29
+ # Define entry point
30
+ ADD . /app
31
+ ENTRYPOINT /bin/bash -c 'bundle exec pry'
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+ group :test do
4
+ gem 'rspec'
5
+ end
data/Rakefile.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler/gem_tasks'
2
+ task :spec do
3
+ Bundler.with_clean_env do
4
+ sh "bundle exec rspec"
5
+ end
6
+ end
7
+ task default: :spec
data/dockerize.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ docker build -t send_tweets .
3
+ docker run -i -t send_tweets
@@ -156,7 +156,7 @@ class Pry::SendTweet::TwitterAction < Pry::SendTweet::BaseCommand
156
156
  end
157
157
 
158
158
  def list_usernames(ary)
159
- find_usernames(ary).map do |username|
159
+ find_usernames_in(ary).map do |username|
160
160
  bold("@#{username}")
161
161
  end.join(', ')
162
162
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "pry-send_tweet.rb"
3
- spec.version = "0.5.1"
3
+ spec.version = "0.5.2"
4
4
  spec.authors = ["Robert Gleeson"]
5
5
  spec.email = "trebor.g@protonmail.com"
6
6
  spec.summary = "Extends the Pry REPL with the capabilities of a Twitter client."
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.homepage = "https://github.com/r-obert/pry-send_tweet.rb"
9
9
  spec.licenses = ["MIT"]
10
10
  spec.require_paths = ["lib"]
11
- spec.files = Dir["*.{md,txt,gemspec}", "lib/**/*.rb"]
11
+ spec.files = `git ls-files`.each_line.map(&:chomp)
12
12
  spec.add_runtime_dependency "pry", "~> 0.12"
13
13
  spec.add_runtime_dependency "twitter", "~> 6.0"
14
14
  end
@@ -0,0 +1,6 @@
1
+ require_relative 'setup'
2
+ RSpec.describe 'pry-send_tweet' do
3
+ let(:tester) do
4
+ pry_tester
5
+ end
6
+ end
data/spec/setup.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'bundler/setup'
2
+ Bundler.require :default, :test
3
+ require 'pry/testable'
4
+
5
+ RSpec.configure do |config|
6
+ config.include Pry::Testable
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-send_tweet.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson
@@ -44,9 +44,14 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - ".gitignore"
47
48
  - CHANGELOG.md
49
+ - Dockerfile
50
+ - Gemfile
48
51
  - LICENSE.txt
49
52
  - README.md
53
+ - Rakefile.rb
54
+ - dockerize.sh
50
55
  - lib/pry-send_tweet.rb
51
56
  - lib/pry/send_tweet/base_command.rb
52
57
  - lib/pry/send_tweet/mixins/tweet_renderer.rb
@@ -54,6 +59,8 @@ files:
54
59
  - lib/pry/send_tweet/send_tweet_command.rb
55
60
  - lib/pry/send_tweet/twitter_action_command.rb
56
61
  - pry-send_tweet.gemspec
62
+ - spec/pry_send_tweet_spec.rb
63
+ - spec/setup.rb
57
64
  homepage: https://github.com/r-obert/pry-send_tweet.rb
58
65
  licenses:
59
66
  - MIT