dharma_quotes 1.0.1 → 1.1.0
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 +6 -3
- data/lib/dharma_quotes.rb +13 -8
- data/lib/quote_libraries/dhammapada.rb +17 -14
- data/lib/quote_libraries/four_noble_truths.rb +11 -4
- data/lib/quote_libraries/noble_eightfold_path.rb +23 -8
- data/lib/quote_libraries/other_texts.rb +19 -19
- data/lib/quote_libraries/pema_chodron_books.rb +55 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 53e3f0d3ee879922bcb77ffc9f42e7623d68b72f
|
|
4
|
+
data.tar.gz: 9fd68225c018d5c8ad8be7db46200bfdf40c28bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e6ecef26f64fd5deb5f423e9d851a6ffdf17a70683c5e5324c84faf0bb9aedcb95af8bab1833b19a2b3605437585fd8faa3a7c970db705e84a8065828f79cfa
|
|
7
|
+
data.tar.gz: 3a6abd5003e4a18a7ec80e479bfbf264df56d27ee2a9c7b4cd5baee076104ecc5bd1fb58d0377db92121deb036cf15ed999e28bc7b520efa5aa24e1449b31e03
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Dharma Quotes 1.
|
|
1
|
+
# Dharma Quotes 1.1.0
|
|
2
2
|
|
|
3
|
-
## Well namaste, it's the Ruby library of Dharma quotes!
|
|
3
|
+
## Well namaste, it's the Ruby library of Dharma quotes! :heart:
|
|
4
4
|
|
|
5
5
|
## How to Install
|
|
6
6
|
In your command line, run the following command:
|
|
@@ -25,4 +25,7 @@ noble_truth = dharma_quotes.get_noble_truth
|
|
|
25
25
|
part_of_noble_eightfold_path = dharma_quotes.get_part_of_eightfold_path
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Contributing
|
|
29
|
+
See 'CONTRIBUTING.md' for instructions.
|
|
30
|
+
|
|
31
|
+
## Enjoy life!
|
data/lib/dharma_quotes.rb
CHANGED
|
@@ -2,6 +2,7 @@ require_relative './quote_libraries/dhammapada.rb'
|
|
|
2
2
|
require_relative './quote_libraries/other_texts.rb'
|
|
3
3
|
require_relative './quote_libraries/four_noble_truths.rb'
|
|
4
4
|
require_relative './quote_libraries/noble_eightfold_path.rb'
|
|
5
|
+
require_relative './quote_libraries/pema_chodron_books.rb'
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
class DharmaQuotes
|
|
@@ -9,32 +10,36 @@ class DharmaQuotes
|
|
|
9
10
|
@dhammapada_quotes = Dhammapada.new.quotes
|
|
10
11
|
@other_texts_quotes = OtherTexts.new.quotes
|
|
11
12
|
@four_noble_truths = FourNobleTruths.new.quotes
|
|
12
|
-
@parts_of_eightfold_path = NobleEightfoldPath.new.quotes
|
|
13
|
+
@parts_of_eightfold_path = NobleEightfoldPath.new.quotes
|
|
14
|
+
@pema_chodron_quotes = PemaChodronBooks.new.quotes
|
|
13
15
|
end
|
|
14
16
|
|
|
15
|
-
# pick a random quote
|
|
16
17
|
def get_quote
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
all_quotes = @dhammapada_quotes.concat(@other_texts_quotes)
|
|
19
|
+
.concat(@four_noble_truths)
|
|
20
|
+
.concat(@parts_of_eightfold_path)
|
|
21
|
+
.concat(@pema_chodron_quotes)
|
|
22
|
+
|
|
23
|
+
all_quotes.sample
|
|
19
24
|
end
|
|
20
25
|
|
|
21
|
-
# pick a random dhammapada quote
|
|
22
26
|
def get_dhammapada_quote
|
|
23
27
|
@dhammapada_quotes.sample
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
# pick a random quote from other texts
|
|
27
30
|
def get_quote_from_other_texts
|
|
28
31
|
@other_texts_quotes.sample
|
|
29
32
|
end
|
|
30
33
|
|
|
31
|
-
# pick one of the parts of the eightfold path
|
|
32
34
|
def get_part_of_eightfold_path
|
|
33
35
|
@parts_of_eightfold_path.sample
|
|
34
36
|
end
|
|
35
37
|
|
|
36
|
-
# pick one of the four noble truths
|
|
37
38
|
def get_noble_truth
|
|
38
39
|
@four_noble_truths.sample
|
|
39
40
|
end
|
|
41
|
+
|
|
42
|
+
def get_pema_chodron_quote
|
|
43
|
+
@pema_chodron_quotes.sample
|
|
44
|
+
end
|
|
40
45
|
end
|
|
@@ -6,57 +6,60 @@ class Dhammapada
|
|
|
6
6
|
Animosity does not eradicate animosity.
|
|
7
7
|
Only by loving kindness is animosity dissolved.
|
|
8
8
|
This law is ancient and eternal. - The Dhammapada',
|
|
9
|
+
|
|
9
10
|
'
|
|
10
11
|
Mind is the forerunner of all actions.
|
|
11
12
|
All deeds are led by mind, created by mind.
|
|
12
13
|
If one speaks or acts with corrupt mind, suffering follows,
|
|
13
14
|
As the wheel follows the hoof of an ox pulling a cart. - The Dhammapada',
|
|
15
|
+
|
|
14
16
|
'
|
|
15
17
|
Mind is the forerunner of all actions.
|
|
16
18
|
All deeds are led by mind, created by mind.
|
|
17
19
|
If one speaks or acts with a serene mind, happiness follows,
|
|
18
20
|
As surely as one\'s shadow. - The Dhammapada',
|
|
21
|
+
|
|
19
22
|
'
|
|
20
23
|
By oneself the evil is done, by oneself one suffers.
|
|
21
24
|
By oneself evil is left undone, by oneself one is purified.
|
|
22
|
-
The pure and the impure (stand and fall) by themselves: no one can purify another.
|
|
23
|
-
',
|
|
25
|
+
The pure and the impure (stand and fall) by themselves: no one can purify another.
|
|
26
|
+
- The Dhammapada',
|
|
27
|
+
|
|
24
28
|
'
|
|
25
29
|
The wise one makes straight
|
|
26
30
|
The trembling, fickle mind
|
|
27
31
|
So hard to guard, so hard to control,
|
|
28
|
-
As the fletcher makes straight the arrow. - The Dhammapada
|
|
29
|
-
|
|
32
|
+
As the fletcher makes straight the arrow. - The Dhammapada',
|
|
33
|
+
|
|
30
34
|
'
|
|
31
35
|
The mind is hard to restrain, light,
|
|
32
36
|
Flying where it will.
|
|
33
37
|
Control of it is good.
|
|
34
|
-
Mind controlled brings happiness. - The Dhammapada
|
|
35
|
-
|
|
38
|
+
Mind controlled brings happiness. - The Dhammapada',
|
|
39
|
+
|
|
36
40
|
'
|
|
37
41
|
Whatever an enemy can do to an enemy,
|
|
38
42
|
Or a rival to a rival,
|
|
39
43
|
A wrongly directed mind
|
|
40
|
-
Will do worse to you than that. - The Dhammapada
|
|
41
|
-
|
|
44
|
+
Will do worse to you than that. - The Dhammapada',
|
|
45
|
+
|
|
42
46
|
'
|
|
43
47
|
What mother or father can do,
|
|
44
48
|
Or any other kin,
|
|
45
49
|
A rightly directed mind
|
|
46
|
-
Will do better for you than that. - The Dhammapada
|
|
47
|
-
|
|
50
|
+
Will do better for you than that. - The Dhammapada',
|
|
51
|
+
|
|
48
52
|
'
|
|
49
53
|
The Learner will conquer this earth,
|
|
50
54
|
And this world of Yama with its gods.
|
|
51
55
|
The Learner will pluck the well-taught word of Dhamma
|
|
52
|
-
As a skilled one plucks a flower. - The Dhammapada
|
|
53
|
-
|
|
56
|
+
As a skilled one plucks a flower. - The Dhammapada',
|
|
57
|
+
|
|
54
58
|
'
|
|
55
59
|
Like a beautiful flower,
|
|
56
60
|
Colourful but scentless,
|
|
57
61
|
The well-taught word is fruitless
|
|
58
|
-
For one who does not practise. - The Dhammapada
|
|
59
|
-
'
|
|
62
|
+
For one who does not practise. - The Dhammapada'
|
|
60
63
|
]
|
|
61
64
|
end
|
|
62
65
|
|
|
@@ -2,10 +2,17 @@ class FourNobleTruths
|
|
|
2
2
|
def initialize
|
|
3
3
|
@four_noble_truths =
|
|
4
4
|
[
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'
|
|
5
|
+
'
|
|
6
|
+
To live is to suffer.',
|
|
7
|
+
|
|
8
|
+
'
|
|
9
|
+
There is a cause to our suffering, and that is desire.',
|
|
10
|
+
|
|
11
|
+
'
|
|
12
|
+
We can end this suffering.',
|
|
13
|
+
|
|
14
|
+
'
|
|
15
|
+
The way to end our suffering is by following the Noble Eightfold Path.'
|
|
9
16
|
]
|
|
10
17
|
end
|
|
11
18
|
|
|
@@ -2,14 +2,29 @@ class NobleEightfoldPath
|
|
|
2
2
|
def initialize
|
|
3
3
|
@parts_of_eightfold_path =
|
|
4
4
|
[
|
|
5
|
-
'
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'
|
|
12
|
-
|
|
5
|
+
'
|
|
6
|
+
Samma Ditthi: right understanding',
|
|
7
|
+
|
|
8
|
+
'
|
|
9
|
+
Samma Sankappa: right thought',
|
|
10
|
+
|
|
11
|
+
'
|
|
12
|
+
Samma Vaca: right speech',
|
|
13
|
+
|
|
14
|
+
'
|
|
15
|
+
Samma Kammanta: right action',
|
|
16
|
+
|
|
17
|
+
'
|
|
18
|
+
Samma Ajiva: right livelihood',
|
|
19
|
+
|
|
20
|
+
'
|
|
21
|
+
Samma Vayama: right effort',
|
|
22
|
+
|
|
23
|
+
'
|
|
24
|
+
Samma Sati: right mindfulness',
|
|
25
|
+
|
|
26
|
+
'
|
|
27
|
+
Samma Samadhi: right concentration'
|
|
13
28
|
]
|
|
14
29
|
end
|
|
15
30
|
|
|
@@ -6,63 +6,63 @@ class OtherTexts
|
|
|
6
6
|
On whom the heart insinctively rests,
|
|
7
7
|
In whom the spirit finds delight,
|
|
8
8
|
With him, though one ne\'er seen before,
|
|
9
|
-
Safely in friendship one may dwell. - The Jataka
|
|
10
|
-
|
|
9
|
+
Safely in friendship one may dwell. - The Jataka',
|
|
10
|
+
|
|
11
11
|
'
|
|
12
12
|
This is what should be done by one who is skilled in goodness,
|
|
13
13
|
And who knows the path of of peace: let them be able and upright,
|
|
14
14
|
Straightforward and gentle in speech,
|
|
15
15
|
Humble and not conceited,
|
|
16
16
|
Contented and easily satisfied,
|
|
17
|
-
Unburdened with duties and frugal in their ways. - Morning and Evening Puja and Reflections
|
|
18
|
-
|
|
17
|
+
Unburdened with duties and frugal in their ways. - Morning and Evening Puja and Reflections',
|
|
18
|
+
|
|
19
19
|
'
|
|
20
20
|
Let none through anger or ill will wish harm upon another.
|
|
21
21
|
Even as a mother protects with her life her child, her only child,
|
|
22
22
|
So with a boundless heart
|
|
23
23
|
Should one cherish all living beings;
|
|
24
|
-
Radiating kindness over the entire world. - Morning and Evening Puja and Reflections
|
|
25
|
-
|
|
24
|
+
Radiating kindness over the entire world. - Morning and Evening Puja and Reflections',
|
|
25
|
+
|
|
26
26
|
'
|
|
27
27
|
By not holding to fixed views,
|
|
28
28
|
The pure-hearted one, having clarity of vision,
|
|
29
29
|
Being freed from all sense-desires,
|
|
30
|
-
Is not born again in this world. - Morning and Evening Puja and Reflections
|
|
31
|
-
|
|
30
|
+
Is not born again in this world. - Morning and Evening Puja and Reflections',
|
|
31
|
+
|
|
32
32
|
'
|
|
33
|
-
Do not accept any of my words on faith, believing them
|
|
33
|
+
Do not accept any of my words on faith, believing them just because I said them.
|
|
34
34
|
Be like an analyst buying gold, who cuts, burns, and critically examines his product for authenticity.
|
|
35
35
|
Only accept what passes the test
|
|
36
36
|
By proving useful and beneficial in your life. - Gautama Buddha
|
|
37
37
|
',
|
|
38
|
+
|
|
38
39
|
'
|
|
39
40
|
Even if the teacher speaks the truth, don\'t just believe it, because you don\'t yet know the
|
|
40
|
-
truth of it yourself. - Luang Por Chah
|
|
41
|
-
|
|
41
|
+
truth of it yourself. - Luang Por Chah',
|
|
42
|
+
|
|
42
43
|
'
|
|
43
44
|
Know all things to be like this:
|
|
44
45
|
A mirage, a cloud castle,
|
|
45
46
|
A dream, an apparition,
|
|
46
|
-
Without essence, but with qualities that can be seen. - Samadhi Raja Sutra
|
|
47
|
-
|
|
47
|
+
Without essence, but with qualities that can be seen. - Samadhi Raja Sutra',
|
|
48
|
+
|
|
48
49
|
'
|
|
49
50
|
Know all things to be like this:
|
|
50
51
|
As the moon in a bright sky
|
|
51
52
|
In some clear lake reflected,
|
|
52
|
-
Though to that lake the moon has never moved. - Samadhi Raja Sutra
|
|
53
|
-
|
|
53
|
+
Though to that lake the moon has never moved. - Samadhi Raja Sutra',
|
|
54
|
+
|
|
54
55
|
'
|
|
55
56
|
Know all things to be like this:
|
|
56
57
|
As an echo that derives
|
|
57
58
|
From music, sounds, and weeping,
|
|
58
|
-
Yet in that echo is no melody. - Samadhi Raja Sutra
|
|
59
|
-
|
|
59
|
+
Yet in that echo is no melody. - Samadhi Raja Sutra',
|
|
60
|
+
|
|
60
61
|
'
|
|
61
62
|
Know all things to be like this:
|
|
62
63
|
As a magician makes illusions
|
|
63
64
|
Of horses, oxen, carts and other things
|
|
64
|
-
Nothing is as it appears. - Samadhi Raja Sutra
|
|
65
|
-
'
|
|
65
|
+
Nothing is as it appears. - Samadhi Raja Sutra'
|
|
66
66
|
]
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Ani Pema Chodron is a nun who has written many books on mindfulness and Buddhist philosophy.
|
|
2
|
+
# She left the Shambhala Organisation in January 2020, explaining why here https://shambhalatimes.org/2020/01/16/letter-from-ani-pema-chodron/
|
|
3
|
+
# What a legend!
|
|
4
|
+
|
|
5
|
+
class PemaChodronBooks
|
|
6
|
+
def initialize
|
|
7
|
+
@pema_chodron_quotes =
|
|
8
|
+
[
|
|
9
|
+
'
|
|
10
|
+
The path is the goal. - Pema Chodron',
|
|
11
|
+
|
|
12
|
+
'
|
|
13
|
+
It isn\'t what happens to us that causes us to suffer; it\'s what we say to ourselves about
|
|
14
|
+
happens. - Pema Chodron',
|
|
15
|
+
|
|
16
|
+
'
|
|
17
|
+
You are the sky. Everything else: it’s just the weather. - Pema Chodron',
|
|
18
|
+
|
|
19
|
+
'
|
|
20
|
+
Sticking with that uncertainty, getting the knack of relaxing in the midst of chaos,
|
|
21
|
+
learning not to panic: this is the spiritual path. - Pema Chodron',
|
|
22
|
+
|
|
23
|
+
'
|
|
24
|
+
Be kinder to yourself. And then let your kindness flood the world. - Pema Chodron',
|
|
25
|
+
|
|
26
|
+
'
|
|
27
|
+
The only reason we don\'t open our hearts and minds to other people is that they trigger
|
|
28
|
+
confusion in us that we don\'t feel brave enough or sane enough to deal with. To the degree
|
|
29
|
+
that we look clearly and compassionately at ourselves, we feel confident and fearless about
|
|
30
|
+
looking into someone else\'s eyes. - Pema Chodron',
|
|
31
|
+
|
|
32
|
+
'
|
|
33
|
+
Someone needs to encourage us not to brush aside what we feel. Not to be ashamed of the love
|
|
34
|
+
and grief that it arouses in us. Not to be afraid of pain. Someone needs to encourage us:
|
|
35
|
+
that this soft spot in us could be awakened, and that to do this would
|
|
36
|
+
change our lives. - Pema Chodron',
|
|
37
|
+
|
|
38
|
+
'
|
|
39
|
+
Let difficulty transform you. And it will. In my experience, we just need help in learning
|
|
40
|
+
how not to run away. - Pema Chodron',
|
|
41
|
+
|
|
42
|
+
'
|
|
43
|
+
The central question of a warrior\'s training is not how we avoid uncertainty and fear but
|
|
44
|
+
how we relate to discomfort. - Pema Chodron',
|
|
45
|
+
|
|
46
|
+
'
|
|
47
|
+
Our true nature is like a precious jewel: although it may be temporarily buried in mud,
|
|
48
|
+
it remains completely brilliant and unaffected. We simply have to uncover it. - Pema Chodron'
|
|
49
|
+
]
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def quotes
|
|
53
|
+
@pema_chodron_quotes
|
|
54
|
+
end
|
|
55
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dharma_quotes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evie Skinner
|
|
@@ -39,6 +39,7 @@ files:
|
|
|
39
39
|
- lib/quote_libraries/four_noble_truths.rb
|
|
40
40
|
- lib/quote_libraries/noble_eightfold_path.rb
|
|
41
41
|
- lib/quote_libraries/other_texts.rb
|
|
42
|
+
- lib/quote_libraries/pema_chodron_books.rb
|
|
42
43
|
homepage: https://github.com/Evie-Skinner18/dharma_quotes
|
|
43
44
|
licenses:
|
|
44
45
|
- MIT
|