pushnote 0.0.1 → 0.0.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 +4 -4
- data/README.md +29 -10
- data/lib/pushnote/cli.rb +4 -0
- data/lib/pushnote/note.rb +6 -0
- data/lib/pushnote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f0fcafe734853ef988ad44440286f3555def74
|
4
|
+
data.tar.gz: 0e5589aba69827aa38c02bdb402d5b6bab4f0ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde1100ac42ad9c6a128d5164f271bc3a02db8948527b236cdeb820279551fba3527c3b4a57916d910b272f4fad9eab859997e0c57e9f784f382ff5f7d68b359
|
7
|
+
data.tar.gz: 210369e532dad13c540d479b15113eb04ac3c5b1a790a4b985a91e0a823915bc9dd3d97100e0e9495924fe46078a054e093c433749dcf16f42e0535a0979fe4a
|
data/README.md
CHANGED
@@ -1,26 +1,45 @@
|
|
1
1
|
# Pushnote
|
2
2
|
|
3
|
-
|
3
|
+
Push notes to a central location.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
Install the CLI tool:
|
9
8
|
```ruby
|
10
|
-
gem
|
9
|
+
gem install pushnote
|
11
10
|
```
|
12
11
|
|
13
|
-
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
The `pushnote` command persists `stdin` to the specified pushnote server.
|
14
15
|
|
15
|
-
|
16
|
+
For example, say you have created a note in `/tmp/note.md`:
|
17
|
+
```
|
18
|
+
### Ruby Sauce
|
19
|
+
Wow, didn't know you could do this:
|
20
|
+
x = 1 + 2
|
21
|
+
```
|
16
22
|
|
17
|
-
|
23
|
+
To send this note to the pushnote server:
|
24
|
+
```
|
25
|
+
cat /tmp/node.md | pushnote --title "Ruby can add numbers, wow"
|
26
|
+
```
|
18
27
|
|
19
|
-
|
28
|
+
## Development
|
20
29
|
|
21
|
-
|
30
|
+
Test locally by running the pushnote server:
|
31
|
+
```
|
32
|
+
git clone git@github.com:corytheboyd/pushnote-server.git
|
33
|
+
cd pushnote-server
|
34
|
+
bundle install
|
35
|
+
bundle exec rake db:create db:migrate
|
36
|
+
rackup -p 3000
|
37
|
+
```
|
22
38
|
|
23
|
-
|
39
|
+
Then, specify the pushnote server host when using the CLI:
|
40
|
+
```
|
41
|
+
pushnote --host http://localhost:3000
|
42
|
+
```
|
24
43
|
|
25
44
|
## Contributing
|
26
45
|
|
data/lib/pushnote/cli.rb
CHANGED
data/lib/pushnote/note.rb
CHANGED
data/lib/pushnote/version.rb
CHANGED