rb-dayone 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/README.md +15 -8
- metadata +4 -4
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -1,14 +1,25 @@
|
|
1
|
-
rb-dayone
|
2
|
-
<<<<<<< HEAD
|
3
|
-
===========
|
1
|
+
# rb-dayone
|
4
2
|
|
5
3
|
A means to create DayOne entries in ruby.
|
6
4
|
|
7
5
|
Examples
|
8
6
|
--------
|
9
7
|
|
8
|
+
You can create an entry pretty simply, by passing in your entry text:
|
9
|
+
|
10
10
|
e = DayOne::Entry.new "# Hello, world!"
|
11
|
+
|
12
|
+
You can also set up other values via a hash:
|
13
|
+
|
14
|
+
e = DayOne::Entry.new "I totally posted this an hour ago", creation_date: Time.now-3600
|
15
|
+
|
16
|
+
Otherwise, you can set values using simple accessor methods, as you'd expect:
|
17
|
+
|
18
|
+
e = DayOne::Entry.new "I need to remember this."
|
11
19
|
e.starred = true
|
20
|
+
|
21
|
+
When you're ready to save your entry, just run the `create!` method:
|
22
|
+
|
12
23
|
e.create!
|
13
24
|
|
14
25
|
Install
|
@@ -26,6 +37,7 @@ Roadmap
|
|
26
37
|
|
27
38
|
* Image support
|
28
39
|
* Location support?
|
40
|
+
* Auto-location detection
|
29
41
|
|
30
42
|
License
|
31
43
|
-------
|
@@ -50,8 +62,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
50
62
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
51
63
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
52
64
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
53
|
-
=======
|
54
|
-
=========
|
55
|
-
|
56
|
-
A ruby library for creating (and, one day, editing and removing) DayOne.app entries
|
57
|
-
>>>>>>> d4606a817c5f5757f6b5e4c996d7f61cb0d023b1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-dayone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,8 +27,8 @@ dependencies:
|
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.0'
|
30
|
-
description:
|
31
|
-
|
30
|
+
description: Create [DayOne](http://www.dayoneapp.com) journal entries simply and
|
31
|
+
easily in ruby. Currently only supports text entries, image entries to come.
|
32
32
|
email: janyves.ruzicka@gmail.com
|
33
33
|
executables:
|
34
34
|
- dayone
|
@@ -44,7 +44,7 @@ files:
|
|
44
44
|
- README.md
|
45
45
|
- spec/entry_spec.rb
|
46
46
|
- spec/spec_helper.rb
|
47
|
-
homepage:
|
47
|
+
homepage: https://github.com/jyruzicka/rb-dayone
|
48
48
|
licenses: []
|
49
49
|
post_install_message: ! '--------------------------------------------------------------------------------
|
50
50
|
|