fry-send_tweet.rb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +282 -0
  3. data/LICENSE.txt +24 -0
  4. data/PRY_LICENSE.txt +25 -0
  5. data/README.md +456 -0
  6. data/Vagrantfile +46 -0
  7. data/art/44-e44743a5bb.jpg +0 -0
  8. data/art/52-eec4df2edf.jpg +0 -0
  9. data/lib/pry-send_tweet.rb +75 -0
  10. data/lib/pry/pager/system_pager.rb +25 -0
  11. data/lib/pry/send_tweet/commands/base_command.rb +70 -0
  12. data/lib/pry/send_tweet/commands/easter_eggs.rb +184 -0
  13. data/lib/pry/send_tweet/commands/paging/paging_support.rb +16 -0
  14. data/lib/pry/send_tweet/commands/read_tweets.rb +93 -0
  15. data/lib/pry/send_tweet/commands/read_tweets/translate_actions.rb +94 -0
  16. data/lib/pry/send_tweet/commands/send_tweet.rb +151 -0
  17. data/lib/pry/send_tweet/commands/twitter_action.rb +118 -0
  18. data/lib/pry/send_tweet/commands/twitter_action/delete_tweet_actions.rb +19 -0
  19. data/lib/pry/send_tweet/commands/twitter_action/follow_actions.rb +66 -0
  20. data/lib/pry/send_tweet/commands/twitter_action/like_actions.rb +23 -0
  21. data/lib/pry/send_tweet/commands/twitter_action/mute_actions.rb +23 -0
  22. data/lib/pry/send_tweet/commands/twitter_action/profile_actions.rb +60 -0
  23. data/lib/pry/send_tweet/commands/twitter_action/suggested_actions.rb +20 -0
  24. data/lib/pry/send_tweet/commands/twitter_search.rb +36 -0
  25. data/lib/pry/send_tweet/renderers/tweet_renderer.rb +103 -0
  26. data/lib/pry/send_tweet/renderers/user_renderer.rb +17 -0
  27. data/lib/pry/send_tweet/tty-box.rb +73 -0
  28. data/lib/pry/send_tweet/twitter_io.rb +26 -0
  29. data/lib/pry/send_tweet/version.rb +5 -0
  30. data/lib/time-ago-in-words/README.md +14 -0
  31. data/lib/time-ago-in-words/lib/time-ago-in-words.rb +37 -0
  32. data/lib/time-ago-in-words/time-ago-in-words.gemspec +14 -0
  33. data/pry-send_tweet.gemspec +23 -0
  34. data/samples/freebsd-zshrc +5 -0
  35. data/samples/tmuxinator-vagrant.yml +11 -0
  36. data/vms/freebsd.rb +15 -0
  37. metadata +123 -0
@@ -0,0 +1,14 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "time-ago-in-words"
4
+ Gem::Specification.new do |s|
5
+ s.name = "time-ago-in-words"
6
+ s.version = TimeAgoInWords::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Kurtis Rainbolt-Greene", "sirupsen", "r-obert"]
9
+ s.homepage = "https://github.com/sirupsen/time-ago-in-words"
10
+ s.summary = %q{Represent a past tense Time object in words}
11
+ s.description = %q{Represent a past tense Time object in words}
12
+ s.files = Dir["*.{md,txt}", "lib/*.rb", "lib/**/*.rb"]
13
+ s.require_paths = ["lib"]
14
+ end
@@ -0,0 +1,23 @@
1
+ Kernel.require_relative 'lib/pry/send_tweet/version'
2
+ Gem::Specification.new do |spec|
3
+ spec.name = "fry-send_tweet.rb"
4
+ spec.version = Pry::SendTweet::VERSION
5
+ spec.authors = ["Pry developers", "Fry developers", "trebor8"]
6
+ spec.email = "trebor.g@protonmail.com"
7
+ spec.summary = "An extensible Twitter client living inside the Pry and Fry REPLs."
8
+ spec.description = spec.summary
9
+ spec.homepage = "https://gitlab.com/trebor8/fry-send_tweet.rb"
10
+ spec.licenses = ["BSD (3-Clause)"]
11
+ spec.require_paths = ["lib", "lib/time-ago-in-words/lib"]
12
+ spec.files = Dir[
13
+ "*file",
14
+ "art/*",
15
+ "vms/*",
16
+ "samples/*",
17
+ "*.{txt,gemspec,md,sh}",
18
+ "lib/**/*.{rb,gemspec,md}"
19
+ ]
20
+ spec.add_runtime_dependency "twitter", "~> 6.0"
21
+ spec.add_runtime_dependency "tty-box", "= 0.3.0"
22
+ spec.add_runtime_dependency "unicode-display_width", "~> 1.4"
23
+ end
@@ -0,0 +1,5 @@
1
+ export EDITOR="ee"
2
+ export PAGER="less"
3
+ export LANG="en_US.UTF-8"
4
+ export LC_ALL="en_US.UTF-8"
5
+ export RUBYLIB='/app/lib:/app/lib/time-ago-in-words/lib'
@@ -0,0 +1,11 @@
1
+ name: pry_send_tweet
2
+ root: /path/to/pry-send_tweet.rb
3
+
4
+ windows:
5
+ - twitter:
6
+ layout: even-horizontal
7
+ panes:
8
+ - source ~/.zshrc && cd /app && pry -r pry-send_tweet -e read-tweets
9
+ - source ~/.zshrc && cd /app && pry -r pry-send_tweet
10
+ - sh:
11
+ -
@@ -0,0 +1,15 @@
1
+ def run(*cmd)
2
+ Process.wait Kernel.spawn(*cmd)
3
+ if !$?.success?
4
+ raise cmd.join(' ') + " failed."
5
+ end
6
+ end
7
+
8
+ ARGV.each do |argument|
9
+ case argument
10
+ when '--fresh' then run('vagrant', 'destroy', '--force')
11
+ end
12
+ end
13
+
14
+ run 'vagrant', 'up'
15
+ run 'vagrant', 'ssh', '-c', 'tmuxinator start pry_send_tweet'
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fry-send_tweet.rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Pry developers
8
+ - Fry developers
9
+ - trebor8
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2019-02-15 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: twitter
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '6.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '6.0'
29
+ - !ruby/object:Gem::Dependency
30
+ name: tty-box
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - '='
34
+ - !ruby/object:Gem::Version
35
+ version: 0.3.0
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - '='
41
+ - !ruby/object:Gem::Version
42
+ version: 0.3.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: unicode-display_width
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.4'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '1.4'
57
+ description: An extensible Twitter client living inside the Pry and Fry REPLs.
58
+ email: trebor.g@protonmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - CHANGELOG.md
64
+ - LICENSE.txt
65
+ - PRY_LICENSE.txt
66
+ - README.md
67
+ - Vagrantfile
68
+ - art/44-e44743a5bb.jpg
69
+ - art/52-eec4df2edf.jpg
70
+ - lib/pry-send_tweet.rb
71
+ - lib/pry/pager/system_pager.rb
72
+ - lib/pry/send_tweet/commands/base_command.rb
73
+ - lib/pry/send_tweet/commands/easter_eggs.rb
74
+ - lib/pry/send_tweet/commands/paging/paging_support.rb
75
+ - lib/pry/send_tweet/commands/read_tweets.rb
76
+ - lib/pry/send_tweet/commands/read_tweets/translate_actions.rb
77
+ - lib/pry/send_tweet/commands/send_tweet.rb
78
+ - lib/pry/send_tweet/commands/twitter_action.rb
79
+ - lib/pry/send_tweet/commands/twitter_action/delete_tweet_actions.rb
80
+ - lib/pry/send_tweet/commands/twitter_action/follow_actions.rb
81
+ - lib/pry/send_tweet/commands/twitter_action/like_actions.rb
82
+ - lib/pry/send_tweet/commands/twitter_action/mute_actions.rb
83
+ - lib/pry/send_tweet/commands/twitter_action/profile_actions.rb
84
+ - lib/pry/send_tweet/commands/twitter_action/suggested_actions.rb
85
+ - lib/pry/send_tweet/commands/twitter_search.rb
86
+ - lib/pry/send_tweet/renderers/tweet_renderer.rb
87
+ - lib/pry/send_tweet/renderers/user_renderer.rb
88
+ - lib/pry/send_tweet/tty-box.rb
89
+ - lib/pry/send_tweet/twitter_io.rb
90
+ - lib/pry/send_tweet/version.rb
91
+ - lib/time-ago-in-words/README.md
92
+ - lib/time-ago-in-words/lib/time-ago-in-words.rb
93
+ - lib/time-ago-in-words/time-ago-in-words.gemspec
94
+ - pry-send_tweet.gemspec
95
+ - samples/freebsd-zshrc
96
+ - samples/tmuxinator-vagrant.yml
97
+ - vms/freebsd.rb
98
+ homepage: https://gitlab.com/trebor8/fry-send_tweet.rb
99
+ licenses:
100
+ - BSD (3-Clause)
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ - lib/time-ago-in-words/lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubyforge_project:
119
+ rubygems_version: 2.7.8
120
+ signing_key:
121
+ specification_version: 4
122
+ summary: An extensible Twitter client living inside the Pry and Fry REPLs.
123
+ test_files: []