pry-send_tweet.rb 0.11.0 → 0.12.0

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: d1b348df95911cd2447ff36cd711b031eb3b874a14b4cf9392182d0a744ec760
4
- data.tar.gz: ecd6e2c63167b4fca8721422e55daa70712d87e210b5ba5f21953b1576dad480
3
+ metadata.gz: a65d075513181fef778a672154cadddb8bdbc243336f131635c08d3a0445b66e
4
+ data.tar.gz: eb3dfe2556e35b33840ec9188837a08b7d48b327f38e677a1c215d78f293be72
5
5
  SHA512:
6
- metadata.gz: 1d54e4d6756e28910ef90821fe1ac8b6c13e78d496cbe57265f16b040f256bb078eb1f1928c2f8767f68681a14ac4b1dfbbd09bfe569cedc14741b6d25ab2b48
7
- data.tar.gz: ba04afd09168981415684e4779dbebd83cc34b5c0f5281318bc1503297faa8e624bb70d6bd4b38b914377dc44191820f2b79d83e73f4fa3287ede2c76d8e390b
6
+ metadata.gz: 8ae97c222b10d2690e3c532d8b78212d46e424684ea53fd1b476747cdee0aa56383d06e3a38d55724488852567ef68265e1617bd607dbc6426121b4b9ca997a1
7
+ data.tar.gz: 6ff8ea1c4d2f531ffc1029e111a0515c354978f55a3350dc5a472a1a2820043cefd2d053dda0d9a7105685761a3dfb140356066a414e2159104521d1bdfea26d
@@ -1,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.12.0
4
+
5
+ * Add `Vagrantfile` & related files to spawn a VirtualBox VM running
6
+ [HardenedBSD](https://hardenedbsd.org).
7
+
8
+ * Distribute `samples/*` as part of the Rubygem package.
9
+
3
10
  ## v0.11.0
4
11
 
5
12
  * Apply a fix to tty-box for the `on-twitter --show-followers`, and
data/README.md CHANGED
@@ -20,6 +20,7 @@
20
20
  * [Install](#install)
21
21
  * [Rubygem](#install-rubygem)
22
22
  * [Docker](#install-docker)
23
+ * [Vagrant (HardenedBSD)](#vagrant-hardenedbsd)
23
24
  * [License](#license)
24
25
 
25
26
  ## <a id='Introduction'>Introduction</a>
@@ -335,10 +336,12 @@ a single shell does not allow for multi tasking but tmux and screen do.
335
336
  I use
336
337
  [tmuxinator](https://github.com/tmuxinator/tmuxinator)
337
338
  to manage my tmux sessions.
338
- The tmuxinator configuration I use is available as a
339
- [sample](./samples/tmuxinator.yml)
340
- to use yourself or to act
341
- as inspiration for your own configuration.
339
+ The tmuxinator configurations I use for Docker / Vagrant are checked into the
340
+ repo to use yourself or to act as inspiration for your own configuration:
341
+
342
+ * [Docker](./samples/tmuxinator-docker.yml)
343
+ * [Vagrant (HardenedBSD)](./samples/tmuxinator-vagrant.yml)
344
+
342
345
 
343
346
  ## <a id='install'>Install</a>
344
347
 
@@ -348,14 +351,26 @@ as inspiration for your own configuration.
348
351
 
349
352
  ### <a id='install-docker'>Docker</a>
350
353
 
351
- This method is how I install and use `pry-send_tweet.rb`, I recommend giving it
352
- a try - especially if on Windows. The Docker container is configured to use `emacs`
353
- when sending tweets and when using other commands that open an editor.
354
+ This method is how I use to install and use `pry-send_tweet.rb`, before switching
355
+ to Vagrant. I still recommend giving Docker a try - especially if on Windows.
356
+ The Docker container is configured to use Debian Linux, and `emacs` when
357
+ performing tasks that use an editor:
354
358
 
355
359
  $ git clone https://github.com/r-obert/pry-send_tweet.rb
356
360
  $ cd pry-send_tweet.rb
357
361
  $ ./dockerize.sh
358
362
 
363
+ ### <a id='vagrant-hardenedbsd'>Vagrant (HardenedBSD)</a>
364
+
365
+ The other available option is to use Vagrant to spawn a
366
+ VirtualBox [HardenedBSD](https://hardenedbsd.org) VM:
367
+
368
+ $ git clone https://github.com/r-obert/pry-send_tweet.rb
369
+ $ cd pry-send_tweet.rb
370
+ $ vagrant up
371
+ $ vagrant ssh -c 'cd /app && bundle exec pry -e "read-tweets"'
372
+
373
+
359
374
  ## <a id='license'>License</a>
360
375
 
361
376
  This project uses the MIT license, see [LICENSE.txt](./LICENSE.txt) for details.
@@ -0,0 +1,31 @@
1
+ Vagrant.configure("2") do |config|
2
+ config.vm.box = "roboxes/hardenedbsd11"
3
+ config.vm.synced_folder Dir.getwd, "/app", type: "rsync"
4
+
5
+ config.vm.provider "virtualbox" do |vb|
6
+ vb.memory = "1024"
7
+ end
8
+
9
+ cmds = [
10
+ "sudo ASSUME_ALWAYS_YES=true pkg install zsh",
11
+ "sudo ASSUME_ALWAYS_YES=true pkg install emacs",
12
+ "sudo chsh -s zsh vagrant",
13
+ "echo '#{File.binread('./samples/hardenedbsd-zshrc')}' > /home/vagrant/.zshrc"
14
+ ]
15
+ config.vm.provision "shell", inline: cmds.join(' && ')
16
+
17
+ # Install Ruby
18
+ cmds = [
19
+ "sudo ASSUME_ALWAYS_YES=true pkg install ruby",
20
+ "sudo ASSUME_ALWAYS_YES=true pkg install devel/ruby-gems",
21
+ "sudo ASSUME_ALWAYS_YES=true pkg install rubygem-bundler"
22
+ ]
23
+ config.vm.provision "shell", inline: cmds.join(' && ')
24
+
25
+ # Install app dependencies
26
+ cmds = [
27
+ "cd /app",
28
+ "bundle install"
29
+ ]
30
+ config.vm.provision "shell", inline: cmds.join(' && ')
31
+ end
@@ -1,5 +1,5 @@
1
1
  class Pry
2
2
  module SendTweet
3
- VERSION = '0.11.0'
3
+ VERSION = '0.12.0'
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.homepage = "https://github.com/r-obert/pry-send_tweet.rb"
10
10
  spec.licenses = ["MIT"]
11
11
  spec.require_paths = ["lib"]
12
- spec.files = Dir["Dockerfile", "Gemfile", "*.{txt,gemspec,md,sh}", "lib/**/*.rb"]
12
+ spec.files = Dir["Vagrantfile", "Dockerfile", "Gemfile", "samples/*", "*.{txt,gemspec,md,sh}", "lib/**/*.rb"]
13
13
  spec.add_runtime_dependency "pry", "~> 0.12"
14
14
  spec.add_runtime_dependency "twitter", "~> 6.0"
15
15
  spec.add_runtime_dependency "time-lord", "~> 1.0"
@@ -0,0 +1,4 @@
1
+ export EDITOR="emacs"
2
+ export PAGER="less"
3
+ export LANG="en_US.UTF-8"
4
+ export LC_ALL="en_US.UTF-8"
@@ -0,0 +1,15 @@
1
+ name: send_tweets
2
+ root: /path/to/pry/send/tweet
3
+
4
+ on_project_start: docker build -t send_tweets .
5
+
6
+ windows:
7
+ - twitter:
8
+ layout: even-horizontal
9
+ panes:
10
+ - docker run -v $PWD/tweets/:/app/tweets -i -t send_tweets bundle exec pry -e "read-tweets"
11
+ - docker run -v $PWD/tweets/:/app/tweets -i -t send_tweets bundle exec pry
12
+ - sh:
13
+ - docker run -v $PWD/tweets/:/app/tweets -i -t send_tweets bash
14
+
15
+ on_project_start: docker build -t send_tweets .
@@ -0,0 +1,16 @@
1
+ name: bsd_send_tweets
2
+ root: /path/to/pry-send_tweet.rb
3
+
4
+ on_project_start:
5
+ - vagrant up
6
+
7
+ windows:
8
+ - twitter:
9
+ layout: even-horizontal
10
+ panes:
11
+ - vagrant ssh -c 'source ~/.zshrc && cd /app && bundle exec pry -e read-tweets'
12
+ - vagrant ssh -c 'source ~/.zshrc && cd /app && bundle exec pry'
13
+ - sh:
14
+ - vagrant ssh
15
+ - sync:
16
+ - vagrant rsync-auto
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.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -105,6 +105,7 @@ files:
105
105
  - Gemfile
106
106
  - LICENSE.txt
107
107
  - README.md
108
+ - Vagrantfile
108
109
  - dockerize.sh
109
110
  - lib/pry-send_tweet.rb
110
111
  - lib/pry/send_tweet/commands/base_command.rb
@@ -125,6 +126,9 @@ files:
125
126
  - lib/pry/send_tweet/tty-box.rb
126
127
  - lib/pry/send_tweet/version.rb
127
128
  - pry-send_tweet.gemspec
129
+ - samples/hardenedbsd-zshrc
130
+ - samples/tmuxinator-docker.yml
131
+ - samples/tmuxinator-vagrant.yml
128
132
  homepage: https://github.com/r-obert/pry-send_tweet.rb
129
133
  licenses:
130
134
  - MIT